Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago
Solved

Switch/If statement for number values

Hey guys, my brain is melting trying to configure a large "x is greater than y, but less than z" statement with multiple parameters ðŸ˜« Could someone help get me started please?   What I'm trying to...
  • zenisekd's avatar
    2 years ago

    You do not need the second parameter in the condition line, just use
    if <10 then 1
    if <20 then 2
    if <40 then 3
    else 4

    Kudos and mark as solution appreciated.

  • Einomi's avatar
    2 years ago

    Try to add a custom column

     

    if [Column A] <= 9.99 then 1 
                else if [Column A] >= 10.00 and [Column A] <= 19.99 then 2 
                else if [Column A] >= 20.00 and [Column A] <= 39.99 then 3 else null