Set a bool based on conditional

Suppose I have this simple operation:

bool is_larger = someint > 5 ? 1 : 0;

the conditional component itself, namely someint > 5 returns a boolean, right? So, could I do this:

bool is_larger = someint > 5;

would that work?
Should do
thanks
Topic archived. No new replies allowed.