SSS
SSS

Reputation: 53

A string is required here error

How can I solve an error saying "A string is required here"

IF {RECEIVED AMOUNT} <= 0
THEN "CANCELLED"
ELSE {RECEIVED AMOUNT}

Upvotes: 1

Views: 17595

Answers (1)

Hexxx
Hexxx

Reputation: 423

Cast {RECEIVED AMOUNT} to string. Try using the ToText() function:

IF {RECEIVED AMOUNT} <= 0 THEN "CANCELLED" ELSE ToText({RECEIVED AMOUNT})

Upvotes: 2

Related Questions