You need to sign in to do that
Don't have an account?
d3developer
System.StringException when comparing blank String against Id
Somewhat surprised that this doesn't work:
if(g.showRule.Form_Field__c == null || g.showRule.Form_Field__c == '')
g.showRule.Form_Field__c = ffid;
Not a big deal since I can remove the test.
Full error:
System.StringException: Invalid id:
Nope. But you could do this if you really care:
All Answers
Try it with parentheses around each Boolean expression, and another set around the full expression:
JeremyNope. But you could do this if you really care: