Download

What is the Blueprint equivalent of the C++ conditional operator (?:) ?

I’m sorry if this is a stupid question but I’ve been searching for a long time and couldn’t find any mention of a Blueprint node that mirrors the C++ ?: operator, returning one value of another based on a given condition. I thought that something like this should be among the basic nodes like branch, for, flip flip etc but I really can’t find it anywhere :confused:

It’s the branch node, because that notation from C is basically a compacted if/then/else:

](filedata/fetch?id=1867158&d=1614587983)
Also, the select node maybe…

Thanks, Select is what I’m looking for