Forum Discussion

johnzabroski_wam's avatar
johnzabroski_wam
Copper Contributor
Oct 21, 2019
Solved

Is =IF true/false conditions non-strict or strictly evaluated?

I am researching this, and unfortunately, Microsoft Excel documentation doesn't clearly explain this simple concept.  In programming language theory, IF is lazy/non-strictly evaluated if it doesn't...
  • JKPieterse's avatar
    Oct 24, 2019

    As far as I know, Excel does short-circuiting on IF and does not evaluate the "other part". You should be able to check that by logging which cells call your UDF (application.caller returns a pointer to that cell):

    Public Function foobar()
        Debug.Print Application.Caller.Address
    End Function

Resources