Select to view content in your preferred language

Mathematical Calculation from a previous integer question

370
2
Jump to solution
12-13-2023 10:34 AM
TrevorRobar2
New Contributor II

Hey Everyone,

 

Building out a form where my user will select a value from 1-14 in a question, and a calculation is performed based on this selection.

For my calculation question, I need to create a calculation based on the previous answer.

This is what I have so far.

if(${fee_type} = 1, (${new_sqft} * 0.15 + 50), 0, 0)

fee_type = integer

new_sqft = double

fee = double (Will be Calculated)

Any direction would be greatly appreciated, almost finished.

Thanks,

Trevor

 

 

Tags (3)
0 Kudos
1 Solution

Accepted Solutions
DougBrowning
MVP Esteemed Contributor

You have too many parameters - only 2 not 3.  Not sure what that last 0 is.

if(${fee_type} = 1, (${new_sqft} * 0.15 + 50), 0)

if(condition, true, false)

Note set the bind::type column if you are seeing strings getting concat instead.

View solution in original post

2 Replies
DougBrowning
MVP Esteemed Contributor

You have too many parameters - only 2 not 3.  Not sure what that last 0 is.

if(${fee_type} = 1, (${new_sqft} * 0.15 + 50), 0)

if(condition, true, false)

Note set the bind::type column if you are seeing strings getting concat instead.

TrevorRobar2
New Contributor II
Nice Catch, Thanks! I knew if I stopped looking at it and asked a friend, it would work out.

0 Kudos