extBITNOT function

dynamic extBITNOT(
  1. dynamic value
)

BITNOT(a): bitwise NOT (uses the pure-arithmetic equivalent -x-1 instead of the ~ operator, to guard against possible bitwise-op discrepancies under Web compilation)

Implementation

dynamic extBITNOT(dynamic value) => -varToInt(value) - 1;