if, conditional blocks

Use if to include blocks only if some condition is true.

it's true

it's true

it's false

really false

there is no more

the NaturalLabel for this file is "if, conditional blocks"

source for Home/ByExample/XilizeMarkup/Signatures/Directives/if :: index.xil

if, conditional blocks

Use @if@ to include blocks only if some condition is true.  

if. true {{

  it's true

}}

if. true {{

  it's true
  
  else. {{
    it's false
  }}

}}

if. false {{

  it's true
  
  else. {{
    it's false
    
    bq. really false 
  }}

}}

if. task.isDefined("_Next_") {{

  goto next page
  
  else. {{
    there is no more
  }}

}}

if. task.isDefined("_Next_") {{

  "_Next_" is defined as ${_Next_}
  
  else. {{
    if. task.isDefined("_NaturalLabel_") {{
        the _NaturalLabel_ for this file is "${_NaturalLabel_}"
    }}
  }}

}}

Long lines are wrapped in this listing.
Use your web browser's "View Page Source" feature to examine the HTML