Module formula field Output zero if one of the fields in the formula is blank

Module formula field Output zero if one of the fields in the formula is blank

Hi All, 

Hoping this is an easy one for someone to answer, I have the following calculation in a formula field

(${Products.Trade Price}-${Products.Wholesale Price}) 


This works fine but if the Wholesale Price is not set I need the output to be zero.  At the moment, understandably,  it is showing the total as the Trade Price if Wholesale is blank.


Scratching my head on this one...

Tried the likes of this 

IF(ISNULL(${Products.Trade Price}) OR ISNULL(${Products.Wholesale Price}), 0, ${Products.Trade Price} - ${Products.Wholesale Price})

but getting syntax errors
 
    Zoho Desk Resources

    • Desk Community Learning Series


    • Digest


    • Functions


    • Meetups


    • Kbase


    • Resources


    • Glossary


    • Desk Marketplace


    • MVP Corner


    • Word of the Day


      Zoho CRM Plus Resources

        Zoho Books Resources


          Zoho Subscriptions Resources

            Zoho Projects Resources


              Zoho Sprints Resources


                Zoho Orchestly Resources


                  Zoho Creator Resources


                    Zoho WorkDrive Resources



                      Zoho Campaigns Resources

                        Zoho CRM Resources

                        • CRM Community Learning Series

                          CRM Community Learning Series


                        • Tips

                          Tips

                        • Functions

                          Functions

                        • Meetups

                          Meetups

                        • Kbase

                          Kbase

                        • Resources

                          Resources

                        • Digest

                          Digest

                        • CRM Marketplace

                          CRM Marketplace

                        • MVP Corner

                          MVP Corner




                          Zoho Writer Writer

                          Get Started. Write Away!

                          Writer is a powerful online word processor, designed for collaborative work.

                            Zoho CRM コンテンツ




                              ご検討中の方