Skip to main content
New Participant
Feb 1, 2023 12:38 PM UTC
Question

Error displaying while working on interface

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
    Inspiring
    Feb 1, 2023 1:01 PM UTC

    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
    Inspiring
    Feb 1, 2023 1:10 PM UTC

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