Example of If Conditional Statement in F#


This content was proof-read by Grammarly. You can Try Grammary for FREE

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
Newsletter Signup

Subscribe to our weekly newsletter below and never miss the latest product or an exclusive offer.

Newsletter Signup

Subscribe to our weekly newsletter below and never miss the latest product or an exclusive offer.

%d bloggers like this: