I am trying to display a value of "Yes" or "No" depending on if a checkbox is checked. If checked, I want to display "Yes" if not, display "No".
I have tried a few variants of the following code, but have not been able to get it to work. set
%%[var @rs2 Set @rs2= RetrieveSalesforceObjects('Reservation__c', 'SPF14_Purchased__c','Household__c','=', @ID)
set @row=row(@rs2,1) set @SPF14=field(@row,'SPF14_Purchased__c')
%%[IF (@SPF14 == True) THEN ]%% %%[ SET @SPF14 = Yes' ]%%
%%[ELSEIF (@SPF14 == False) THEN]%% %%[SET @SPF14 = 'No']%% %%[ELSE]%% %%[ENDIF]%% ENDIF ]%%
true
andfalse
instead of"true”
and"false”
. It’s hard to troubleshoot the rest of your script, as it seems incomplete@ID
which is not set. And you could put all that script in one block, but that’s not the issue here