Example of If Conditional Statement in F#
// AbundantCode F# Tutorials and Code snippets open System [<EntryPoint>] let main argv = let value1 = 10 let value2 = 25 if value1 > value2 then Console.WriteLine("Value 1 is greater") elif value1 < value2 then Console.WriteLine("Value 2 is greater") let retval = Console.ReadLine() 0 // return an integer exit code
Leave a Reply