1 Reply Latest reply: Nov 3, 2014 1:45 PM by CJAllen RSS

    FormCalc If Statement -- Shows no error, but still doesn't work

    kkoenen Community Member
      I have the following code, which, when I validate it, doesn't show any errors, and yet it isn't working:
      //Generate Selector Code from Account Type
      If (AccountType.rawValue eq 1 or AccountType.rawValue eq 3)
           then (SelectorCode.rawValue eq 147);
           elseif  (AccountType.rawValue eq 2)
           then (SelectorCode.rawValue eq 247);
           else (SelectorCode.rawValue eq 347);
           endif
      Any ideas where I'm going wrong?
      Thanks much