if - else statment

Hello,

Could You help me with one problem in Cuda:

I have 3 numbers a, b, c. How to rewrite this if - else statement:

if (a < 0)
b = c;
else
b = c + 1

Thank You

Perhaps you need a semicolon after the

b = c + 1

line?