sml if else statements
if, then and else are the keywords. then is required after the if.
if 3+3=5 then "Wrong" else "3+3 is not 5";
Output:
val it = "3+3 is not 5" : string val it = () : unit
Search within Codexpedia
Custom Search
Search the entire web
Custom Search
Related Posts