//
//Condition control 
//

//Syntax
if(condition) {
  statement under condition;
}
elseif(condition) {
  statement under else if condition;
}
else {
  statement under else condition;
}  

//
//Example  
//
//Compare salary of colored elite with white elite.
//Read banker property
get bankR.csv@;

//Define name by code id hand *id idnm/ 1 1:stuff 2 2:trainning 3 3:gardman 4 4:specialist 5 5:director 6 6:MBA 7 7:engineer ; put jobcat_; //Count by jobcat; get bankR.csv@; count jobcat/ jobcat:format=jobcat_ ;

//View number of jobcat get freq@ana; plot bar COUNT by jobcat;

//making category in elite and worker class by minority. get bankR.csv@; if(jobcat <= 3) { if(minority == 0) { jobm="white_worker"; } else { jobm="black_worker"; } outrec worker; } else { if(minority == 0) { jobm="white_elite"; } else { jobm="black_elite"; } outrec elite; } //View histgram of salary by minority. plot hist salnow by jobm;

//View histgram of salary by minority in elite class. get elite; plot hist salnow by jobm;

In elite class minotory which have high salary are fewer than white

get worker; plot hist salnow by jobm;

In worker class minotory which have high salary are same with white in worker.