taylorbray
New member
I have 4 different "if" statements that change a single variable based on a single condition, but I only want the variable changed when there is a positive result from the conditional statement. Is there a way to leave the expression after else blank? Or might the switch statement be useful for this application?
Snippet of code for reference.
if countxd > 0 {
short=yes;
} else {
short=no;
}
Thanks in advance,
Taylor
Snippet of code for reference.
if countxd > 0 {
short=yes;
} else {
short=no;
}
Thanks in advance,
Taylor