Complex if statements in blueprints

Hello, I need help with if statemets in bp, let me briefly explain my situation. So I have some c++ code that I’ll attach here(
изображение_2022-05-02_144728654
) where I used conditions to return the angle value of a vector and I wanted to convert it to bp to better understand how these kinds of statements
can work here. In this code, I have a radToDeg function to convert the angle to degrees, but I already know that we have a built-in bp function for this, so use that. And also to return the values, I planned to use the bp string print function. I have read a lot of information about branches, gates and flow control in bp but I couldn’t figure out how to do it and thought I’d ask for help here. Thanks in advance

1 Like

“If” is a simple Branch Node
“ElseIf” you can realize with a new Branch Node conected to the previous Branch False pin

Outside your If statements you can use a simple sequence node.

2 Likes

Thank you, but do you know anything about additional conditions? I mean, you can see that in one “if”, I am also checking for another value, and then I have 3 different output options.
изображение_2022-05-02_164034304
. But I think I can do it by creating a branch node from a true pin. If you know another solution please reply.

1 Like
3 Likes

AND node

There’s the whole compliment of bool comparitors, AND, OR, NOR, XOR, NOT.

1 Like