Welcome to collectivesolver - Programming & Software Q&A with code examples. A website with trusted programming answers. All programs are tested and work.

Contact: aviboots(AT)netvision.net.il

Buy a domain name - Register cheap domain names from $0.99 - Namecheap

Scalable Hosting That Grows With You

Secure & Reliable Web Hosting, Free Domain, Free SSL, 1-Click WordPress Install, Expert 24/7 Support

Semrush - keyword research tool

Boost your online presence with premium web hosting and servers

Disclosure: My content contains affiliate links.

39,859 questions

51,780 answers

573 users

How to use if, elif and else inside let statement in F#

1 Answer

0 votes
let n = 12

let x =
    if n >= 30 then 1
    elif n <= 20 then 2
    else 3

printfn "%A" x




     
(* 
run:
     
2
     
*)

 



answered Oct 19, 2020 by avibootz

Related questions

1 answer 180 views
180 views asked Oct 19, 2020 by avibootz
1 answer 181 views
181 views asked Oct 19, 2020 by avibootz
1 answer 174 views
174 views asked Oct 9, 2020 by avibootz
1 answer 192 views
192 views asked Oct 9, 2020 by avibootz
2 answers 239 views
239 views asked Oct 8, 2020 by avibootz
2 answers 356 views
356 views asked Sep 21, 2020 by avibootz
1 answer 182 views
182 views asked Sep 21, 2020 by avibootz
...