home > 比較編 > F#, Scala, Haskell > execution control >

ForNext

Only Do What Only You Can Do

101. if

VBScript

JScript

Perl

PHP

Python

Ruby

PowerShell

Scala

if ( x > 0 )
  println("pos")


F#

OCaml

if x > 0 then
  print_string "pos\n";;


Haskell

if x > 0
  then putStrLn "pos"
  else return ()

C

C++

C++Builder

VC++

C#

Java

Objective-C

D

VB

VB.NET

Delphi

Ada

PL/SQL

T-SQL

inserted by FC2 system