Operator |
Code |
Is to not equal to : != |
if (5 !=8) {
// Your code
}; //Here we enter in the loop because 5 is different to 8. |
Smaller than: < |
if (2<3) {
// Your code
}; // We enter in the loop because 2 is smaller than 3. |
Smaller or equal to : <= |
if (2<=2) {
// Your code
}; //Here we enter in the loop because 2 is smaller or equal to 3. |
Equal to : == |
if (6==6) {
// Your code
}; // Here we enter in the loop because 6 is equals to 6. |
Bigger than : > |
if (9>1) {
// Your code
}; // Here we enter in the loop because 9 is bigger than 1 |
Bigger or equal to : >= |
if (9>=9) {
// Your code
}; // Here we enter in the loop because 9 is bigger or equal to 9. |