the 'old programmer' fix to this problem as a policy, is to always put the non changing part of the comparison first. ie if you had put in
if (1 = $krida) {
then the parser would have thrown an error and you wouldn't have been wondering what the problem is. Because its non-intuitive, its a hard habit to build, but its very worthwhile :)