Nested IF Statement for value range

Hi all,
I'm looking to assign a value to specified value ranges that may result from a previous hidden calculation.

For example: the #bodyweight_calc hidden value may generate a value of '380', which I then want to assign a value of '45' which will be used in a further hidden calculation.

The xpath expression below does not seem to respond to the hidden calculation and only returns '22'. I've checked the nested expressions and the formula seems to be correct. Is it that < and > are not supported?

Much appreciated
Bethany

@BethanyD Please look at this guide.

Eg. from the guide:
if(101 < bodyweight_calc and bodyweight_calc < 151, 22, ....)

Thanks @zekarias,
You're right, I completely missed the need for the 'and' within the statement.
Much appreciated.