CONDITION OUT
\kəndˈɪʃən ˈa͡ʊt], \kəndˈɪʃən ˈaʊt], \k_ə_n_d_ˈɪ_ʃ_ə_n ˈaʊ_t]\
Sort: Oldest first
-
A programming technique that prevents a section ofcode from being executed by putting it in an if statementwhose condition is always false.It is often easier to do this than to comment out the codebecause you don't need to modify the code itself (as you would ifcommenting out each line individually) or worry about nestedcomments within the code (as you would if putting nesting commentdelimiters around it).For example, in Perl you could write: if (0) ...code to be ignored... In a compiled language, the compiler could simply generate nocode for the whole if statement. Some compiled languages such asC provide compile-time directives that achieve the same effect,e.g.: #if 0 ...code to be ignored... #endif(or "#ifdef notdef").
By Denis Howe
Word of the day
Snake's-head
- Guinea-hen flower; -- so called in England because its spotted petals resemble the scales of a snake's head.