For those who needs this later, you can set up http proxy and send a simple get request to https://api.ipify.org , it will give you the ip adress in plain text, no need to parse the json.
One of many simple and easy ways to do it.
Using Conditionals in Execute Code
-
I have been trying to use conditions "Switch " ,"for" and "if" statements to call functions based on either the switch expression, the iterator or the evaluation of the "if" expressions.
The issue is that at the first run of the expressions, it calls the corresponding function, but after that it gives an error in the log saying "[940048881] [12:44:56] Thread #1 : ReferenceError: Can't find variable: third during execution of action 940048881"
It always says it can't find the the variable, when it should be calling the function name.Attached below are the screenshots:

The error log:

IS there a problem somewhere, or it is not allowed??