Code:
proc vrtJnt(int $x){
// Let's declare this radius variable out here so it won't be constrained to
// the following `if else` statement.
// The value of $radius will
// depend on what the script finds when it tests the value of $x
float $radius;
if($x == 0){
$radius = 0.1;
print "I'm a fluffy puppy ^^/n";
}else if($x == 1){
$radius = .015;
}//and on and on if need be or use a `case switch` if you're more comfortable with that
//do some stuff that uses the variable $x like:
string $jnt = `joint -n bn_nSpine01 -rad $radius`;
//etc etc
}
Then when the proc is called, different numbers can make the script go into different modes depending on the conditional statement, in my case `0` sent it into print fluffy puppy mode!