EXPRESS.sml
Download
More scripts: SML Fundamentals
Syntax Highlighing:
comments, key words, predefined symbols, class members & methods, functions & classes
# EXPRESS.SML # sample script for "Writing Scripts with SML" # shows use of expressions and conditional statments numeric len, width, area; len = 50; width = 30; area = len * width; # compute area if ( area < 200 ) then print( "Area is LESS than 200" ); else { print( "Area is MORE than 200" ); print( "Adjust length or width" ); }