Need help with IF / Then Statement in NX script
I'm having trouble getting started with the if then logic with some code I use.
"------------If Then Logic------------";
Need help with If amID = null end, else do below
let sURL := "http://EXAMPLE:17790/api/externalminers/" + amID + "?key=EXAMPLE";
let response := do as server
'AM.json' := text(response)
In the above code, I've made two separate areas, the top being where I need help crafting an if then / statement.
Ideally if amID is null, I'd like the button to do nothing or alert "amID is not filled", but if the ID has any value, I'd like to run the code below.
I've tried to port over code from examples but it seems like I'm only addressing one line of the Core Scripting when I try. If anyone can help me out here, you'll make my Christmas and I'll keep adding to my logic. I've just inserted psuedo code for now to demonstrate what I'd like to do.