Convert number capture to word capture between 2 range number c# config need little help!

hello.
im getting number capture as shown in attached picture

2023_04_15_13_31_23_OpenBullet_2_0.2.5_Beta

Now i want to convert this number to the word inside my config by c# code , lolicode or any other easy option
like the next example thats what i need to get the result

if the number ( the capture on pervious pic ) 1164.2 between
those 2 ranges number from 1150 ( before the capture ) to 1299.99( after the capture )
so it will be like that 1150 (1164.2) 1299.99
i want to get the result word crown

i tried this code but im not good at this part & dont know how to fix it to work propably
if (mmr >= 1150 && mmr <= 1299.99) {
mmrMessage = <span class='crown'>crown</p>;
}

could someone pro take a look and help me out thanks in advance.

BLOCK:ConstantFloat
value = 164.2
=> VAR @RESULT
ENDBLOCK

BLOCK:ConstantString
=> CAP @WORD
ENDBLOCK

IF FLOATKEY @RESULT GreaterThanOrEqualTo 1150
IF FLOATKEY @RESULT LessThanOrEqualTo 1299.99
BLOCK:ConstantString
value = “Crown”
=> VAR @WORD
ENDBLOCK
ELSE
BLOCK:ConstantString
value = “Fail”
=> VAR @WORD
ENDBLOCK
END
ELSE
BLOCK:ConstantString
value = “Fail”
=> VAR @WORD
ENDBLOCK
END

1 Like

not working and btw the value 1164.2 keep changing its not stable one
so it maybe be random number not 1164 too for multi checking captures i just sorted one example to build the main code for the rest

the code i gave you has a constant value because i don’t have your captures. of course you have to replace the constant block with your capture

1 Like

yes you are right my bad there , i fixed it as you said
thanks bro you fixed it , now works like charm <333333