Joined: 11 Oct 2011
Online Status: Offline
Posts: 9
Topic: Why is ELSE not working? Posted: 28 Feb 2012 at 10:06am
Can anyone tell me why the Else is not being triggered in the following snippet?
local StringVar DateConversion :=
mid({Command.receivedDate},5,2)+"/"+right({Command.receivedDate},2)+"/"+Left({Command.receivedDate},4);
local StringVar RecievedDate;
if {Command.receivedComment} = "Need to contact pt"
then (RecievedDate := DateConversion + "-"+ "Need to contact pt")
Else If {Command.receivedComment} = "No need to contact pt"
then (RecievedDate := DateConversion + "-"+ "No need to contact pt")
else RecievedDate := DateConversion;
The IfElse works correctly, but the ELSE is failing and not pulling just the date. I've confirmed in the DB that there is a date for the record in question.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum