you could use switch statement



switch(user){
case 1:
switch(comp)
case 1:
do whatever
break;