function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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.