Copy link to clipboard
Copied
Good evening I am attempting to create large if-then structured built into Functions.
However, I am running into the problem of not being able to write IF-ELSE statements, when the argument is whether a drop-box is empty, or not.
Here is an example:
var dropBox = this.getField("Drop Box)";
var SourceField = this.getField("Source");
if (dropBox.valueAsString != "") {
console.println(sourceField);
}
Even if Drop Box has no strings selected, it still won't complete the statement.
Any help would be greatly appreciated!
Then it should work if that value is selected... What is the outcome of running this code?
Copy link to clipboard
Copied
What's the default value of the drop-down?
Copy link to clipboard
Copied
The drop-box has a blank entry as its default
Copy link to clipboard
Copied
Then it should work if that value is selected... What is the outcome of running this code?
Copy link to clipboard
Copied
The full code is supposed to scan through 7 different drop box fields. For every first drop box field that is empty, the "Source" variable will be put into the first available drop box field.
I want to be able to scan for which ones are empty, or not, that way nothing gets over-written in the drop box fields.