home > 比較編 > Perl, PHP, Python, Ruby > execution control >

ForNext

Only Do What Only You Can Do

162. statement modifiers

VBScript

JScript

Perl

print "positive\n" if $i > 0;
print "nonzero\n" unless $i == 0;

PHP

none

Python

none

Ruby

puts "positive" if i > 0
puts "nonzero" unless i == 0

PowerShell

Scala

F#

C

C++

C++Builder

VC++

C#

Java

Objective-C

D

VB

VB.NET

Delphi

Ada

PL/SQL

T-SQL

関数型

inserted by FC2 system