+ Start a Discussion
Ker Vin.ax1237Ker Vin.ax1237 

Relational Operators in APEX Programming

Can anyone help out with this? Basically, I want the following conditions

1) Description is not blank

2) Remarks = blank

3) Subject does not start with 'Email:'

 

if ((tasks.Description != null) &= (tasks.Remarks__c == null) &= (tasks.Subject.startsWith('Email:')== false))

 

I wrote something like this, but I think the relational operators are wrong. Is there a guide for this

Best Answer chosen by Admin (Salesforce Developers) 
AmitSahuAmitSahu

if ( tasks.Description != null  && tasks.Remarks__c == null  && tasks.Subject.startsWith('Email:')== false)

All Answers

AmitSahuAmitSahu

if ( tasks.Description != null  && tasks.Remarks__c == null  && tasks.Subject.startsWith('Email:')== false)

This was selected as the best answer
Ker Vin.ax1237Ker Vin.ax1237

Yikes, must have confused the comparison operator with the logical operator....sorry for the waste of time.