int a = 1; int b = 2. int x; if (a < b) { x = 0 } else { x = 1; } // ou en condensé x = (a < b) ? 0 : 1;