Skip to main content
February 1, 2023
Question

Error displaying while working on interface

  • February 1, 2023
  • 2 replies
  • 0 views

Hi 

Expression i used is:

if(todate(ri!vehicle.vehicleNextMaintenanceDate) <
todate(ri!vehicle.vehicleLastMaintenanceDate), “The next
maintenance date must be after the last maintenance date.”,
null)

Below message is the error i got while working on interface.

Could not display interface. Please check definition and inputs. Interface Definition: Expression evaluation error at function 'if' [line 59]: Invalid number of parameters, function 'if' a minimum of 3 parameters (condition,true,false), passed 1.

    2 replies

    ayusha3676
    February 1, 2023

    This code has no error I have run it on my enviroment, please check it again Is there is another if condition that generates this error

    konduruc733182
    February 1, 2023

    Hello shivav6355, your code is working fine. Might be some other if() condition in your expression.