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.