>>85
全部ifの単発でok
あるいはcaseを使うと見易くなる

if(data.age=3)data.race_next_age=1; 
if(data.age=4) data.race_next_age=1;