Can't Read between condition using and

image

why the condition is still can read greater than 30 i’m using string btw and can’t read 6 in my data i want to give range between 1 - not more than 30 please help me

Hi @marvin_ariel_johannes

can you please try by removing quotes for 30 and 0.

try this way Remain < 30 and Remain > 0(Remain datatype should be int32).

Regards,
Vijay.

1 Like

can we use string? for the condtion

hi @marvin_ariel_johannes

What is data type of Remain Variable ??
is Remain data type is string ??

if yes then use below cint(Remain) < 30 and cint(Remain) > 0

Regards,
Vijay

1 Like

this had error If: Conversion from string “” to type ‘Integer’ is not valid.

i take data from excel so the data will be like “6”, “7” ,“222”

Hey @marvin_ariel_johannes

can you please share input file. i can design workflow for you so that you can re use it.

:slight_smile:

Regards,
Vijay

Before to this condition check the Remain value is empty or not. if it is empty you don’t have to convert it. use below code line to check empty or not.

Remain.equals(string.empty)

Regards,
Vijay.

1 Like

i can use this thanks

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.