if statements
eharetea

A basic if statement in Hscript.

Basic Hscript.

Date Created:Friday December 29th, 2006 03:41 AM
Date Modified:Friday August 01st, 2008 01:52 PM

/*


BASIC IF:


&& is for and

|| is for or

!= is not equal to.


*/



if ($curvetype==n)
 set curvetype = nurbs
else if ($curvetype==p)
 set curvetype = poly
else if ($curvetype==b)
 set curvetype = bezier
else ($curvetype!=n && $curvetype!=p && $curvetype!=b)
 echo nurbs will be the default due to bad input.
 set curvetype = nurbs
endif