Oxygen

conditionals
if , then , elseif , else , endif ,
RELATED: selection loops
 
'------------
'CONDITIONALS
'============

  string s
  int a=1, b=2
  
  'SINGLE LINE FORMAT
  
  if a>b then s="A>B" else s="A<=B"

  'print s


  'MULTI-LINE FORMAT
  
  if a>b then
    s="A>B"
  elseif a=b then
    s="A=B"
  else
    s="A<B"
  end if
  

'-----------------
'SYNTAX VARIATIONS
'=================

  if (a>b) {s="A>B"} elseif (a=b) {s="A=B"} else {s="A<B"}

  if a>b {s="A>B"} elseif a=b {s="A=B"} else {s="A<B"}

  if a>b {
    s="A>B"
  } elseif a=b {
    s="A=B"
  } else {
    s="A<B"
  }

print "A=1 B=2
" s