Jump to content
  • 0

Error in formula


Kuroshi
 Share

Question

4 answers to this question

Recommended Posts

  • 0

Hi 

you should also try to ensure that the type you are using in your calculation is consistent with what you wish to achieve.

In Barbie's reply you end up with 0 as a string. If that is what you need fine, if not, you can use the Cast or Convert function as in LittleMsGinger's link

You could try the following

CASE
WHEN '[@authfield:BTN_User_Accounts_Permanent_Discount]'=''
THEN Cast('0' AS int)
 
ELSE Cast('[@authfield:BTN_User_Accounts_Permanent_Discount]' AS int)
 
END

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...