Hacking - SQL Injection - MSSQL - If Statement

Get response based on an if statement.

This is one of the key points of Blind SQL Injection, also can be very useful to test simple stuff blindly and accurately.

IF condition true-part ELSE false-part
 
IF (1=1) SELECT 'true' ELSE SELECT 'false'