if syntax with boolean

if syntax with boolean

why don't work expression "if("Student"='true',1,2)", when "Student" is Y/N type