awk with two conditions

Hi Everyone,

[root@]# cat 1
1;2;3;4;5;6
1;2;3;4;5;

[root@]# awk -F ";" '$5 == "5"' 1
1;2;3;4;5;6
1;2;3;4;5;

but the output is should be just "1;2;3;4;5;6" means 1st condition: $5 is 5; 2nd condition: $6 is not empty, please advice. Thanks

$ ruby -F";" -ane 'print if $F[4]=="5" and !$F[5].strip.empty?' file
1;2;3;4;5;6

try this,

awk -F";" '$5==5 && $6 != ""' inputfile