Skip to main content
I am trying to create a PDF for a Work Order.  For our Billing account there are 2 possibilities the default billing account or the override billing account.  If you want to use the override billing account you have to check the checkbox.  I want the PDF to pull the correct one so I was trying to write an IF statement that pulled one account if the box was checked (TRUE) and another if it was not (FALSE). Below is what I cam up with

{!IF(!workOrderForm.Override_Bill_to__c = TRUE,

   !workOrderForm.Bill_To_Account__r.Name,

   !workOrderForm.Bill_To_Account_Lookup__r.Name)

     Note:  WorkOrderForm is a variable called out in the controller that represents our work order number

 

But I keep getting this error message 

Error: Incorrect parameter type for function 'not()'. Expected Boolean, received Text    

Any ideas?
6 answers
0/9000