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
srinu jsrinu j 

Map<String, Schema.Sobjecttype> my; if(my.get(s).getDescribe().isCustom()) here s is a string. What is the meaning of these two statements?

Sumitkumar_ShingaviSumitkumar_Shingavi
Hello Srinu,

1. "s" is name of the object. like it's value can be "Account", etc.
2. These 2 statements basically telling you if the object mentioned in string "s" is custom or not. Your "if" will pass or will be true if you pass custom object API name as value in variable "s".

Hope this helps!

Thanks,
Sumit
srinu jsrinu j
Thank you Sumit.
Sumitkumar_ShingaviSumitkumar_Shingavi
Srinu, mark right comment as answer.