I am trying to compare 2 variables (numbers) in an InputScript. However, one is in the format "17100" and the other is "17,100". Therefore they will never match. Is there a way to manipulate the string to remove the comma?

One possibility would be to use calculations; they ignore the comma (group separator) at this position:

Set V[a] &V[x1] + 0

Set V[b] &V[x2] + 0

if V[a=&V[b]]

Title "OK]"

endif

Another possibility would be to use ">" or "<" instead of "="; these comparisons also ignore the group separator:

if not V[a>&V[b]] and not V[a<&V[b]]

Title "OK]"

endif

Please keep in mind that in some countries (e.g. UK, USA) the group separator is "," as in our example, and other countries (e.g. almost all European countries) use "." as group separator and "," as decimal separator.