does a function exit at returnValue line?

Get help using Construct 2

Post » Tue Jan 27, 2015 3:05 pm

Hello;

How do I exit a function part way through it? return Value? is there another way if I don't want to set a value and just want
an early exit?
does a function ever execute any code after the return value statement?

thanks for your time.
B
34
S
8
G
3
Posts: 169
Reputation: 3,305

Post » Tue Jan 27, 2015 3:49 pm

A function always runs to the end. You have to design your logic to deal with that.
ImageImageImage
B
71
S
22
G
248
Posts: 3,758
Reputation: 138,067

Post » Wed Jan 28, 2015 3:04 am

Thanks blackhornet
B
34
S
8
G
3
Posts: 169
Reputation: 3,305


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 17 guests