<?xml version="1.0" encoding="utf-8" ?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
  <CodeSnippet Format="1.0.0">
    <Header>
      <Title>if else</Title>
      <Shortcut>ife</Shortcut>
      <Description>Write an if else condition</Description>
      <Author>Jeremie Corpinot</Author>
      <SnippetTypes>
        <!-- snippet types -->
        <SnippetType>Expansion</SnippetType>
      </SnippetTypes>
    </Header>
    <Snippet>
      <Declarations>
        <Literal>
          <ID>param1</ID>
          <ToolTip>condition</ToolTip>
          <Default>true</Default>
        </Literal>
        <Literal>
          <ID>body1</ID>
          <ToolTip>code to execute if the condition is true</ToolTip>
          <Default>// body1</Default>
        </Literal>
        <Literal>
          <ID>body2</ID>
          <ToolTip>code to execute if the condition is false</ToolTip>
          <Default>// body2</Default>
        </Literal>
      </Declarations>
      <Code Language="javascript">
        <![CDATA[if ($param1$) {
        $body1$
        }
        else {
        $body2$
        }$end$]]>
      </Code>
    </Snippet>
  </CodeSnippet>
</CodeSnippets>