Hi I am trying to check a value that is matching some range in an dynamic array.I have a amount for example say 3555,
I have a array [1000,2000,999999]. Normally we can use if statement to check for dynamic range like,
if(3555<100)
{
//do something
}
elseif(3555<2000)
{
//do something
}
elseif(3555<999999)
{
//do something
}
Condition that I need to implement is that static amount(3555) is greater that some value and less than some value,To be more specific
like Amount < 1000 >2000
Now I have a dynamic array to feed as input.How could I check for condition that is true and get the array index? Can someone help me?