FlexSEA Wiki

A WEARABLE ROBOTICS TOOLKIT

User Tools

Site Tools


styleguide

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
styleguide [2019/02/05 21:28]
dtscbs
styleguide [2019/02/15 16:40] (current)
jfduval
Line 36: Line 36:
 __**Conditional statements:​**__ __**Conditional statements:​**__
  
-Always use brackets, even if you have a single line below the statement. Example:+Always use brackets, even if you have a single line below the statement. Do not put a space before the parentheses. Example:
  
 USE: USE:
Line 54: Line 54:
 <​code>​if(value1 == value2) <​code>​if(value1 == value2)
      ​value3 = 1;</​code>​      ​value3 = 1;</​code>​
 +     
 +Do not include a space between if and (). Good:
 +
 +<​code>​if(value1 == value2)</​code>​
 +
 +Bad:
 +
 +<​code>​if (value1 == value2)</​code>​
styleguide.1549402118.txt.gz ยท Last modified: 2019/02/05 21:28 by dtscbs