-SET &ECHO = 'ALL'; -SET &HI=IF 212 EQ 'ALL' THEN 'ALL' ELSE IF 05 LT 06 THEN 'N/A' ELSE STRREP (05, '212', 4, ' OR ', 2, ', ', 05, 'A05'); -TYPE &HI -EXIT
I am just having this in code. In this ELSE IF 05 LT 06 is not getting executed at all on any cause. It is going to the ELSE part everytime and causing an error.
Anyone could crack why is is that ? It shud stop at the ELSE IF itself. Something is going crazy. This message has been edited. Last edited by: Kerry,
Thanks,
Ramkumar. WebFOCUS/Tableau Webfocus 8 / 7.7.02 Unix, Windows HTML/PDF/EXCEL/AHTML/XML/HTML5
February 09, 2012, 09:43 AM
njsden
Works okay in 7.7.03. I get "N/A" as expected.
Here's the output:
Your request did not return any output to display.
... some output lines removed ...
-SET &HI=IF 212 EQ 'ALL' THEN 'ALL' ELSE IF 05 LT 06 THEN 'N/A' ELSE STRREP (05, '212', 4, ' OR ', 2, ', ', 05, 'A05');
-TYPE N/A
N/A
-EXIT
I assume 212, 05 and 06 are just "resolved" values for some &variables you have in your code, are they not?