Yes Chris, that is known as the conditional operator or ternary operator (because it is usually the only 3 operand operator) and is available in many languages. It is a very useful shortcut for if(clause){value1}else{value2}.
If you return null for the documentID for a data source, it will switch from edit to create document mode.
Glad to be of some assistance,
Rich