Jump to content
  • 0

Calculated field - logical operator


mferguson
 Share

Question

Does anyone know if it is possible to implement a logical operator (i.e. an if/then statement) within a calculated field? It doesn't seem to accept it right now.

Alternatively, is there any way for an HTML block to be configured to display a new field that displays the result of an if/then statement?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

hi,

If you want to display something in Calculated field, The statement to use is:

Case

when

then

else

end.

For example:

CASE

WHEN [@field:FIELDNAME1]="Value to compare"

THEN 0

ELSE [@field:FIELDNAME2]

END

where, FIELDNAME1 is the name of the field that you want to use in this comparision. FIELDNAME2 is the second field name that is used if the condition do not satisfy.

Hope this helps.

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...