cancel
Showing results for 
Search instead for 
Did you mean: 

I want to change source formatting of if statements from the top example to the bottom example shown. I want the brackets to align with the if, i.e. same column..

inotec
Associate III

if (SW1Pressed_F && (!SW1ActionTaken_F))

{

   DesiredSpeed = 10;

    DesiredDirection = LEFT;

   }

if (SW1Pressed_F && (!SW1ActionTaken_F))

{

   DesiredSpeed = 10;

    DesiredDirection = LEFT;

   }

10 REPLIES 10

Great!

If the problem is resolved, please mark this thread as answered by selecting Select as best under your preferred answer. This will help other users find that answer faster.

/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.