Handling of null values

markbucceri
markbucceri Community Member Posts: 49
I found the following code in trivantis-cookie.js:function EncodeNull( chkStr ) {    if( chkStr == null ) return "~~~null~~~"    else if( String( chkStr ) == "0" ) return 0    else if ( chkStr == "" ) return "~~~null~~~"    return chkStr}Seems Lectora converts a null value or an empty string to "~~~null~~~".What is the logic behind that? If I try to clear (set to empty string) a SCORM variable such as AICC_Score, Lectora converts it to the string "~~~null~~~" which is an incorrect data value for SCORM and an error is thrown.Any insights and work arounds would be appreciated.
Sign In or Register to comment.

So You Wanna Be An eLearning ROCKSTAR?

We're all fans of eLearning here! Want to become an eLearning ROCKSTAR? Just click on one of the buttons below to start your rocking journey!