namely using the `(asOfDate || new Date())` condit...
# suitescript
e
namely using the
(asOfDate || new Date())
conditional to replace your previous ternary statement and variable assignment