The above condition checks these values u03.18 and u03 if it is like this then bot went to then block assign the boolean as false. If the values are this 403, 403.00 and 403.18 then bot went to else assign the boolean as True.
Check the below workflow for u03.18 value, it was giving false as output,
→ If this matches then it will go to then block in then block assign the boolean as True.
→ If this doesn’t match then it will go to else block in else block assign the boolean as False.
If you have any doubt by using If condition simply use the below expression in assign activity,
I have to use above regex in UiPath forum and check if amount is correct then user should submit. i think it won’t work because it will check for char value.
could you please write for amount because i am checking for correct amount ( number and decimal )?
I got my answer we have to use same regex in UiPath forum because we are checking for incorrect amount. It is working fine and giving True for “u” but when we are searching any special character like “/403.330”, “<403.00” it is giving false. it should give true because amount is in incorrect format.
when I am searching “a403.12”, “4u03.67” it is giving true because we are searching char value and giving false for “403.45”, "40345.678 because amount is correct as per regex
when I am searching any special character instead of char like “@403.00”, “%456.78” it is giving me false. it should give me true because we are searching for in correct amount.
can you please update regex for special character because it is rejecting amount if amount contains char ?