Tutorial by Topics: loop

for (declaration, condition, iteration) { } while (condition) { } do { } while (condition) General Remark If you intend to create a loop to wait for something to happen, you're probably on the wrong track here. Rather remember that all code after setup() is run from a method called loop()...
Big thanks to Pete Freitag for his CFScript Cheat Sheet Adam Cameron for CF 11: CFLOOP in CFScript is Very Broken (and it still is in CF 2016).
$scope.$watch(watchExpression, callback, [deep compare]) $scope.$digest() $scope.$apply([exp])
Official docs explains playbook conditionals. http://docs.ansible.com/ansible/playbooks_conditionals.html Ansible (github) https://github.com/marxwang/ansible-learn-resources
for /l %%p in (startNumber, increment, endNumber) do command for /f %%p in (filename) do command for /f %%p in ("textStrings") do command for /f %%p in ('command') do command for /r drive:\path %%p in (set) do command for /d %%p in (directory) do command The for command acce...
Using a WHILE loop or other iterative process is not normally the most efficient way to process data in SQL Server. You should prefer to use a set-based query on the data to achieve the same results, where possible
for i in iter; ...; end while cond; ...; end break continue @parallel (op) for i in iter; ...; end @parallel for i in iter; ...; end @goto label @label label Whenever it makes code shorter and easier to read, consider using higher-order functions, such as map or filter, instead of lo...
for (variable identifier in iterating collection) { expression } while (condition) { expression } do { expression } while (condition); break; continue;
add_action( 'pre_get_posts', 'callback_function_name' ); function callback_function_name( $query ) {} // for PHP 5.3.0 or above add_action( 'pre_get_posts', function( $query ){} ); ParameterDetails$query(WP_Query) Loop object If you are using PHP 5.3.0 or above, you can use closures (an...
for OrdinalVariable := LowerOrdinalValue to UpperOrdinalValue do begin {loop-body} end; for OrdinalVariable := UpperOrdinalValue downto LowerOrdinalValue do begin {loop-body} end; for EnumerableVariable in Collection do begin {loop-body} end; Delphi's for-loop syntax does not provide an...
for (<initializer>; <loop condition>; <loop statement>) { <statements> } while (<condition>) { <statements> } do { <statements> } while (<condition>); foreach (<el>, <collection>) foreach_reverse (<el>, <collection>) ...
This section provides an overview of what loops is, and why a developer might want to use it. It should also mention any large subjects within loops, and link out to the related topics. Since the Documentation for loops is new, you may need to create initial versions of those related topics. ...
/* all versions */ for ([expression]; [expression]; [expression]) one_statement for ([expression]; [expression]; [expression]) { zero or several statements } while (expression) one_statement while (expression) { zero or several statements } do one_statement while (expression); do { one o...
while cond; body; end break continue The while loop does not have a value; although it can be used in expression position, its type is Void and the value obtained will be nothing.
ClauseParameterprivateComma-separated list of private variablesfirstprivateLike private, but initialized to the value of the variable before entering the looplastprivateLike private, but the variable will get the value corresponding to the last iteration of the loop upon exitreductionreduction oper...

Page 2 of 4