Fix Bugs in iif
and getDate
Functions in functionsfactory.ts
#9674
Labels
user issue
An issue or bug reported by users
https://github.com/surveyjs/survey-library/blob/ddb1b9d479c93351aa6e9ee9cbff3d5b3c59dde4/packages/survey-core/src/functionsfactory.ts#L232C1-L243C55
Hi,
I have identified a couple of bugs in the
iif
andgetDate
functions defined in the filepackages/survey-core/src/functionsfactory.ts
. Below are the details:1.
iif
Functionif (!params && params.length !== 3)
is incorrect. It should beif (!params || params.length !== 3)
to correctly handle cases whereparams
isnull
orundefined
.2.
getDate
Functionif (!params && params.length < 1)
is incorrect. It should beif (!params || params.length < 1)
to correctly handle cases whereparams
isnull
orundefined
.The text was updated successfully, but these errors were encountered: