C0004 Compiler Error
Message text
Condition for elseif statement must be a boolean.
Explanation
The following code generates C0004:
|
1 2 3 4 5 6 7 8 9 |
boolean lb_cond int li_num char lc_charc if lb_cond then li_num++ elseif lc_charc then // generates C0004 li_num -- // note space required before -- end if |
The following code compiles without error:
|
1 2 3 4 5 6 7 8 9 |
boolean lb_cond int li_num char lc_charc if lb_cond then li_num++ elseif lc_charc = 'Z' then li_num -- end if |
See Also
IF…THEN in the section called “IF…THEN” in PowerScript Reference.
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest