more switches
<!--parser:xtscript-->
# 1 random number
var $x = call mt_rand $min=1;$max=100

# The basic "if elseif"
if $x > 90
  print \$x is more than 90 <hr />
  elseif $x > 80
    print \$x is more than 80<hr />
  elseif $x > 70
    print \$x is more than 70<hr />
  elseif $x > 60
    print \$x is more than 60<hr />
  elseif $x > 50
    print \$x is more than 50<hr />
  elseif $x > 40
    print \$x is more than 40<hr />
  elseif $x > 30
    print \$x is more than 30<hr />
else
  print \$x is less than 30<hr />
endif

print \$x=$x<br />
<!--/parser:xtscript-->
Show in textarea
Reload
$x is less than 30
$x=1