I want to compare a string and an number (integer) inside a scripted field. I know I have to convert the field from string to integer. I just dont know the syntax for that and dont find any result.
The characters of String Field are all numbers so it should work if I get the syntax correct.
my current code:
"field" : "StringField",
doc['StringField'].value == doc['NumberField'].value
Thanks for help!