Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
chaiwaykeat
Contributor II
Contributor II

Expression using IF

I have problem posting logical expression using IF can someone please advise ?

Untitled.jpg

1 Solution

Accepted Solutions
Kushal_Chawda

It should be something like below

=if ( (Avg. Expression 1) >= (Avg. Expression 2),

(Avg. Expression 1),

(Avg. Expression 1) )

View solution in original post

3 Replies
teiswamsler
Partner - Creator III
Partner - Creator III

Hi Chaiwaykeat

You cant use ELSE in a if statement in the frontend. You have to build your expression as a nested if.

ex.
If(Condition, Output, If( Condition, Output, else ))


Br.
Teis

davidfdezcalleja
Contributor II
Contributor II

To make nested IFs the structure would be as follows:

If (

condition Expression,

then_expr Expression

[,else_expr Expression]

)

ELSE reserved word is not used.

Kushal_Chawda

It should be something like below

=if ( (Avg. Expression 1) >= (Avg. Expression 2),

(Avg. Expression 1),

(Avg. Expression 1) )