[SOLVED] the syntax for an IF then using the define field creator in advanced graph
The syntax in the define field GUI's seem to leave me stumped . I am in Advanced graph Assistant and I want to assign numbers to my week days so I can sort them properly. I have entered :
IF UM_PEND_DIS_DTL.UTIL_PENDING_DISCH_DTL.WKDAY EQ '' Sunday '' THEN 1 else 0
and I am getting back a syntax error message . Can anyone tell me what the syntax should be ?This message has been edited. Last edited by: Kerry,
8002 Windows
February 22, 2013, 11:17 AM
Alex
Try single quotes and a semi-colon terminator.
WF 7.7.04, WF 8.0.7, Win7, Win8, Linux, UNIX, Excel, PDF
February 22, 2013, 01:17 PM
Tara O
Thanks the single quotes fixed it!!
8002 Windows
February 22, 2013, 03:33 PM
FrankDutch
Is this a DATEFIELD or a string? If it a date then it has already an internal sequence number. Else use the decode function.
Frank
prod: WF 7.6.10 platform Windows, databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7 test: WF 7.6.10 on the same platform and databases,IE7
February 25, 2013, 10:32 AM
Tara O
It is a string that shows the day name. What is decode and what does it do?
8002 Windows
February 25, 2013, 11:53 AM
Alex
Decode is a function that converts whatever is coming from your source to your specifies value.