Visual Basic .NET <-> JavaScript | Conditional statement
Visual Basic .NET  Used keywords: if  else  then  end 
if then end if, if then else end if
Description
if condition then
statements1
end if
if condition then
statements1
else
statements2
end if
Input
- condition - Logical value The condition can be any expression
- statements1 - statements
- statements2 - statements
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
.
JavaScript  Used keywords: if  else 
if, if else
Description
if (condition) statement1if (condition) statement1 else statement2Input
- condition - Logical value The condition can be any expression
- statement1 - statements
- statement2 - statements
Examples
JavaScript
Conditional statement the possible of use:if (i > 10)
{
i =10;            i = i - 1;   i++;
}
if (i < 10) i = 10; else i=1;
Conditional statement in another programming language:
Differences to: