hi all
while using if function i am getting below mentioned error
error=THEN expected
my program
if $in[2]=true then
prgm_1();
end if
home
hi all
while using if function i am getting below mentioned error
error=THEN expected
my program
if $in[2]=true then
prgm_1();
end if
home
$in[2]=true is assignment and end if should be endif
if $in[2] then
prgm_1();
endif
and if You use Comparison operator for INT or REAL You must used "==".
IF(myInt == 3) THEN
...
ENDIF
thank you