Visual Basic .NET <-> Pascal | Conditional statement

Visual Basic .NET

if then end if, if then else end if

Description

if condition then
statements1
end if
if condition then
statements1
else
statements2
end if
Used keywords: if else then end

Input

Examples

Visual Basic .NET

Conditional statement the possible of use:
if i > 10 then
i =10
            i = i - 1
   i=i+1
end if
if i < 10 then
 i = 10
 else
 i=1
end if
.
Pascal

if then, if then else

Description

if condition then statement1;
if condition then statement1 else statement2;
Used keywords: if else then

Input

Examples

Pascal

Conditional statement the possible of use:
if i > 10 then
begin
i :=10;            i := i - 1;   inc(i);
end;
if i < 10 then i := 10 else i:=1;
Languages: en hu cz sk