gmqcc/tests/ifs.qc

12 lines
223 B
C++

void(string, ...) print = #1;
void(float c) main = {
if (c == 1)
print("One\n");
else if (c == 2)
print("Two\n");
else if (c == 3)
print("Three\n");
else
print("Else\n");
};