hi i want to check if nick is equal to 1

my var
Code:
%Jorger22 1


My script
Code:
on *:TEXT:*:?:{
  var %nicknom = $nick
  if (%nicknom == 1) {
    .msg $nick yes 1
  }
}

but this does not check if nick is one, thank you very much for your prompt help