It is PHP, and yes, '10' > '6' gives true (it works with haal of famer potential), that's why I thought that all-time great is '10+' or something like that, because '10+' > '6' gives false.
And as I said, this works fine with most of the players except for the players with all-time great potential....
This is a function, which checks that the player is good enough for the hungarian U21 NT or not. It returns with true, if he is or false, if not. It is qiuet simple, only checks his age, salary and potential. Lot is users in Hungary used it in the last week, without any problem (or they don't alert me, if there was any problem) until today, when one of them wrote, that it said his player is not good for the NT, but it is not true (and this user has right). I checked the code and find, that under his age, salary....etc. he should be good enough...