hello,
I have the following code
This works well, but I would like to add "and" to my if statement so it would look something like this
I tried this but does not work any ideas?
thanks!!
I have the following code
Code:
if (ctrlkeycontrol.getValue() == 'X')
{
ctrlresp.addValidation("IsRequired");
ctrliscontroldocumented.addValidation("IsRequired");
ctrlnarrativeofcontrol.addValidation("IsRequired");
ctrlfrequency.addValidation("IsRequired");
ctrlpersonresponsable.addValidation("IsRequired");
ctrlmanualorautomated.addValidation("IsRequired");
}
else if(ctrlkeycontrol.getValue() == null)
{ ctrlcorrectiveactionplanned.addValidation("IsRequired");
ctrlplancompletiondate.addValidation("IsRequired");
}
This works well, but I would like to add "and" to my if statement so it would look something like this
Code:
if (ctrlkeycontrol.getValue() == 'X' and ctrlmaincontrol.getVlue() == 'No')
I tried this but does not work any ideas?
thanks!!