Use 'unless $platformwin' instead of 'if $platformwin == false'