One way to do that would be that you need to create a workflow that will consist of the following steps:
First step in your workflow to populate the field “Larger” with Input A*2 value
Second step in your workflow to populate the field “Larger” with Input B*5 value
Set conditions for both steps to only run if the result of the math is what you need (A2>B5 or vice versa for the appropriate step).
Sometimes Bubble math behaves funny, so you may need to use setStates to store the results of the A2 and B5 operations, but I believe you get the idea.
Here’s the link to the WF conditions feature description and discussion:
Thanks @john3 and @vladlarin. Both should be easy enough to apply.
@Scott, I tried to experiment with the max and it didn’t work. The reference manual didn’t help. I tried to put in A’s value * 2 <- max -> B’s value * 5. That didn’t work. I’m thinking that I didn’t use it correctly. Do you put <- max -> between two input values? That seemed to be the only place I was able to put it.
Since Bubble processes values from left to right, it will interpret that statement as max(A’s value * 2, B’s value), and omit the factor of 5. To get around this, put the inputs in a group whose data are numbers that evaluate A * 2, and B * 5, respectively. Then feed the group’s numbers into the max function.