When checking the value of a boolean and requiring to set a string value (using a ternary operator) in salesforce, is there a short process for this.
For example with the following I get an error: pipeDelimitedLead += aLead.SMS_Opt_In__c == '1|' ? '0|':
error: Comparison arguments must be compatible types: Boolean, String
is there a quick way of doing this without requiring an if/else statement?
Thanks.