when setting a variable to something that evaluates to "" at runtime, the variable is set to $null instead.
not necessarily a bug, i know, but i find the current behaviour misleading.
the following statement:
would set %x to $null if $1 is "", instead of setting it to "", as one would expect.
i think setting the variable to $null instead of "" should only be used in straightforward statements like:
because it expresses the intention of setting the variable to $null, unlike when setting a variable to something that evaluates to "". especially when used in the form shown, i don't think the variable should be set to $null, because it would be like it's evaluating the expression twice.
using mirc v6.16.