I think there's some other problem. Seems where ever I use "IF" it causes a syntax error.
I'm trying to create a process. The IF is always flagged as a syntax error in column 1.
CREATE ObjectA WITH
ObjectA.ID = LoggedInRegularUser.LogInName
ObjectA.Date = CURRENT_DATE
ObjectA.Amount = (Some calculated number)
IF ObjectB EXISTS WHERE ObjectB.ID = ObjectA.ID THEN
FIND ObjectB WHERE ObjectB.ID = ObjectA.ID
ObjectB.Date = CURRENT_DATE
ObjectB.Amount = ObjectA.Amount
ELSE
CREATE ObjectB WITH
ObjectB.ID = LoggedInRegularUser.LogInName
ObjectB.Date=CURRENT_DATE
ObjectB.Amount = ObjectA.Amount
There are other attributes involved but I need only one instance of ObjectB per RegularUser and there will be multiple instances of ObjectA.
It's actually meant to be a PayPal routine. I need ObjectA to accumulate an amount in a number field. The PayPal parameter for the amount is a text field. ObjectB (passed to PayPal) will be used repeatedly as needed.