What is the best way to do an if statement that checks if certain checkboxes are checked or not? Do checkboxes in MEL have inherent 1 value if checked and 0 if not? Or do I need to assign them those values? What would be the proper syntax? Thanks
I have found that the if statement should check to match what is in the "Statement" field of a checkbox. For example, I have a checkbox and the statement is "Head" and I have an edit field that I want to write text to depending on if the checkbox is checked or not, my if statement would look like this:
{if DOCUMENT.HEAD = "Head"
then
DOCUMENT.TEXT = "Head Only"
endif}
And if you have a list box (multiple check boxes), you have to MATCH against each check box's statement. So if you have 3 different boxes, you will have to run a MATCH against the document variable or obs term that represents those check boxes and look for each individual statement to appear in it. Can get very involved if you are trying to look for combinations.
Thank you both.