Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 3996
3 votes

How to get value for boolean variable from controller

All parameters are passed as strings so you will have to do this: if you are not going to ever call the controller from anon apex and always be in VF context you can do this (sfdcfox): boolean pbv = … ApexPages.currentPage().getParameters().get('BooleanVariable‌​Name') == 'true'; otherwise (Generally not needed and not typically a pattern you should follow as there are other ways to mitigate it) Boolean
Eric's user avatar
  • 54.4k
1 vote

Evaluate a Boolean expression from dynamic string in loop

CampaignId = varNametoValueMap.get(sub), Status = 'Subscribed')); } } } else { for(Contact c : Trigger.new) { Boolean … oldConSub = string.valueOf(trigger.oldMap.get(c.id).get(sub)) == 'Subscribed'; Boolean newConSub = string.valueOf(c.get(sub)) == 'Subscribed'; //only add updated records to list …
Eric's user avatar
  • 54.4k