En:Linear branches

Материал из Pocket Fallout для КПК на PDA PC PPC Mobile.

In PFSL laguage operator of linear branching - opertor "if" exists. This operator has next syntax :

Syntax

if  <expression> then
   [operator 1;]
   [operator 2;]
   [operator 3;]
   …
   [operator n;]
[else]
   [operator 1;]
   [operator 2;]
   [operator 3;]
   …
   [operator n;]
endif


Example

var a=1;
var b=6;
var msgString="";
if (A==1) and (B>5) then
   msgString = "Hello, World!"
endif


See also
Logical operations

Личные инструменты