MivaScript 5.36 added support for s.null
. s.null
will always be null. Assigning a value to s.null
does not change the value of s.null
and avoids keeping the result of a function or expression in memory.
You can assign variables to s.null
when you do not need to use the return variable for anything. By assigning variables to s.null
, it more clearly indicates that the variable will not be used (as opposed to l.result
or l.success
). Just be sure you do not pass s.null
(or variables assign to s.null
by reference) into MivaScript or mvt:do functions