Top "Conditional-statements" questions

In computer science, conditional statements, conditional expressions and conditional constructs are features of a programming language which perform different computations or actions depending on whether a programmer-specified boolean condition evaluates to true or false.

Count records with a condition in XSLT

I have an xml with this structure: <emails> <record> <field name="host"><![CDATA[…

xml xslt count conditional-statements cdata
POSIX C Threads. pthread_cond_t example. Doesn't work as expected

I wrote a wrote a program and it doesn't work as I expect it to. I have two threads: thread …

c++ variables pthreads conditional-statements multitasking
Ways to Find a Race Condition

I have a bit of code with a race condition in it... I know that it is a race condition …

c++ visual-studio-2008 conditional-statements race-condition
If condition A is matched, condition B needs to be matched in order to do action C

My question is: if (/* condition A */) { if(/* condition B */) { /* do action C */ } else /* ... */ } else { /* do action C */ } Is it possible …

if-statement language-agnostic conditional-statements boolean-logic
Adding conditions to Containable in CakePHP

Previously I was relying on recursive, but I didn't get solution for some, then I found that Containable works fine …

cakephp recursion cakephp-2.0 conditional-statements containable
Does C# support if codeblocks without braces?

How would C# compile this? if (info == 8) info = 4; otherStuff(); Would it include subsequent lines in the codeblock? if (info == 8) { info = 4; …

c# compilation codeblocks conditional-statements
Select Case Fall through with Not Condition in VB.NET

How to Add Not condition in the below select case. Is <> works for single value, and 'To' works …

vb.net switch-statement conditional-statements select-case
How to compare two floating-point values in shell script

I had to do a division in shell script and the best way was: result1=`echo "scale=3; ($var1 / $total) * 100"| bc …

linux comparison shell conditional-statements bc
Check for equality in Spacebars?

I am trying to do what I think should be a very simple task, but have been failing to do …

if-statement meteor equals conditional-statements spacebars