www.kxcad.net Home > Electronic Index > Altium(Protel) Index
A statement in Delphi Script is simple when it does not contain any other statements. Examples of simple statements are assignment statements and procedure calls.
Simple statements
X := Y + 10; // assignment
ShowMessage(‘Hello World!’); // procedure call
A component statement consists of multiple statements. An example include
Compound statements
Begin
If A > B Then ShowMessage(‘A is bigger’)
Else ShowMessage(‘B is bigger’);
A := 0;
B := 0;
End;
In Delphi script, when you are assigning values to variables, you use the colon-equal operator, :=. When you are testing for equality, you just use the equality operator, =.
See also