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

How to write IF in APEX

how to write a condition in child class

which will bases the datamember in parent class


Not Totally sure what you're asking - but maybe you're looking for something like this...


public class className {

public boolean trueFalse = true();


public void methodNameABC {

if (trueFalse = true) {

trueFalse = false;