Guest_imported
New member
- Jan 1, 1970
- 0
Just transferring over form other programming languages...and just can't find out the syntax to this:
I want to compare a string argument in Upper/Lower case, but my code is off:
if ((args[3] == "P" || (args[1] == "p") {
weight=weight/2.2;
}
if ((args[1] == "I" || (args[3] == "i") {
height=height/39.36;
}
what needs to change?
BMS, frustratingly lost/...
I want to compare a string argument in Upper/Lower case, but my code is off:
if ((args[3] == "P" || (args[1] == "p") {
weight=weight/2.2;
}
if ((args[1] == "I" || (args[3] == "i") {
height=height/39.36;
}
what needs to change?
BMS, frustratingly lost/...