Hi turbomen
PosNeg is a variable,the
Random() function generate a random number it will one or zero,and
PosNeg's value willl be one of them,the
If statement will evaluate the
condition.The evaluating result can be only two values,such as
[True] or the another is
[False].
If true that posneg's value is zero Then,the program does the added commands,if the condition is FALSE then the [Else] branch follows if there is any....
Good practice,try it...
Load your code into delphi,press the
[Run] menu and press
[Trace Into F7],so you can
go inside the program,by pressing the
[F7] button,you will see the steps one by one,look at your
If statement's changes with your own eyes...