I\'m wondering if there\'s a way to convert a boolean to an int without using if statements (as not to break the pipeline). For example, I could write
int bo
You can try using ternary operator like this
int value = flag ? 1 : 0;