Share your content and reach out to more developers by submitting them at Abundantcode.com - Developer Community Site

Example of If Conditional Statement in F#

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

Tags :

Leave Your Comment