Variable error

Hi,

I am using a variable in an if statement, the if statement to read if value stored is higher than 500 then do this else do this.
However when i put the variable in the condition i get an error saying “Options strict on disallows implicit conversions from string to double” never seen this before can anyone help?

@nick.v - pl try below

for double
Convert.ToDouble(strVariable) > 500

for int
Convert.ToInt32(strVariable) > 500

2 Likes

@GBK i changed the variable to generic value and that has worked, thank you for your response.