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
Sean NolansSean Nolans 

Content cannot be displayed: The value 'null' is not valid for operator '>'

Content cannot be displayed: The value 'null' is not valid for operator '>'

What is strange is that that sys admin does not get the message and the page renders well but not for users they get the above error


example  of synthax
<apex:outputlabel value= "{!IF(order__c.hss_qty_price__c > 0, "Includes HSS ", "No hss" )}" /> <apex:outputText value = "{!IF(order__c.hss_qty_price__c > 0, order__c.hss_qty_price__c, " " )}" />


Any suggestsion would be great

thanks 

 
SandhyaSandhya (Salesforce Developers) 
Hi,

Try below code.

"{!IF(AND(NOT(ISBLANK(order__c.hss_qty_price__c)),order__c.hss_qty_price__c > 0),order__c.hss_qty_price__c, " " )}"

Please mark it as solved if my reply was helpful. It will make it available for other as the proper solution.
 
Best Regards
Sandhya


 
Amit Chaudhary 8Amit Chaudhary 8
Please update your code like below
<apex:outputlabel value= "{!IF(order__c.hss_qty_price__c > 0, 'Includes HSS ', 'No hss' ) }" /> 

<apex:outputText value = "{!IF(order__c.hss_qty_price__c > 0, order__c.hss_qty_price__c, ' ' )}" />

Please use signle '