Would you give an example of if-else statement in ValQ?

Solved5.90K views
0

Hi,

I am new to this subject, i need to create a model with an if-else statement (some calculation will only be done if the prerequisites in other nodes are fulfilled).

would you kindly give an example for this formula usage in ValQ?

(i understand this should be in JS expression, however i found some error from my side while working on this)

Thank you.

best regards,

M.Rizal

Question is closed for new answers.
Selected answer as best
1

Hi,

Let’s consider a scenario where tax rate is assigned a value based on the Net Sales. This can be modelled using an if-else statement as shown in the image.

Take a look at our sample model ‘P&L for Small and Medium-Size Business’ to understand the example better.

In case you face any issues, feel free to contact us.

Selected answer as best

Huge Thanks @Chandra.