How to check if value is between two values?

Hello everyone,

I have to check a sum of different values in my app, and if that sum is equal to 0 do something, if it is between 1 and 3 do an other thing, between 4 and 6 something else, etc. How can I do that simply in flipabit ?

I tried with a function but it doesn’t work :

function () {
if (document.childByName(“Total attributs”).content.doubleNumber >3 && document.childByName(“Total attributs”).content.doubleNumber < 8)
then return “true”
else return “false”
}
image

Precision : My sum is a Number [N] variable


Back to Flipabit >
Copyright © 2018. Flipabit Team. All rights reserved.