79464928

Date: 2025-02-24 22:20:57
Score: 2
Natty:
Report link

On re-read of the casting rules on MS' website I see the problem. Int will convert 0 to $false, 1 to $true. But string is evaluated on it's length?! (Zero length, $false; Any other length $true). Only char (for those that need a reminder, a single character variable class) of 0/1 will convert to their int relative boolean values.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: user66001