Official release of PxPlus 2025 Update 1 (version 22.10) NOW available for download.
->def object v,"*variant"
->v'val$="false"
->?v'val$
false
->print v'type$
S
->v'type$="B"
->print v'val
0
->v'val$="true"
->print v'type$
S
->v'type$="B"
->print v'val$
-1As per the docs, setting the type will cause the *VARIANT to properly convert the value. DEF OBJECT V,"*VARIANT"
LET V'TYPE$="B"
LET V'VAL$="0"
! LET V'VAL$="FALSE" !ALSO TRY THIS
REPORT'EXPORT(*V)
!REPORT'EXPORT(V) ! also try this