Inspectopedia
 
2024.3

Pointless boolean expression inside 'if' condition

Info
New
Last modified: 03 December 2024

Reports the boolean expressions inside if conditions that contain $expr == true or $expr == false. Such expressions can be simplified to if($expr) and if(!expr).