Actually there is one more issue of confusion for me on this. Is there any difference between "TRUE" and TRUE ? Do all strings need to be in quotes, except TRUE and FALSE ?
>The string TRUE is recognized as the true logical value. So, if you have the formula
>
>if(TRUE,1,0)
>
>you will see 1 as the calculated value.
>
>In this sample, \Syncfusion\Essential Suite\3.0.1.0\Windows\Calculate.Windows\Samples\DataGridCalculator, if you replace the definition of the custom function with this code,
>
>public string ComputeMymin(string args)
>{
> if(args == "1")
> return "TRUE";
> else
> return "FALSE";
>}
>
>you can then type this formula in the textbox
>
>= IF(mymin(1),18,20)
>
>then you will see 18 displayed.