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.

Using conditional statements inside 'expect'

I need to automate logging into a TELNET session using expect, but I need to take care of multiple passwords …

bash automation telnet expect conditional-statements
Makefile : contains string

A variable returns MINGW32_NT-5.1 or CYGWIN_NT-5.1. (yea, dot at the end) Need to compare that given var contains …

string makefile conditional-statements
How can I check the existence of attributes and tags in XML before parsing?

I'm parsing an XML file via Element Tree in python and and writing the content to a cpp file. The …

python xml parsing conditional-statements elementtree
Replace negative values by zero

We want to set all values in an array zero that are negative. I tried out a a lot of …

r if-statement for-loop conditional-statements rcpp
How to do/workaround a conditional join in python Pandas?

I am trying to calculate time based aggregations in Pandas based on date values stored in a separate tables. The …

python pandas dataframe join conditional-statements
Check if a condition is false

It is seems to be an easy question, I wonder why googling didn't give anything helpful -- nor in StackOverflow, …

linux bash shell unix conditional-statements
Are "elseif" and "else if" completely synonymous?

Are elseif and else if completely synonymous, or is there a difference? Does Zend have an accepted "standard" on which …

php syntax conditional-statements
MySQL IN condition limit

Hey, I have to use IN condition in my MySQL statement with a large set of ids. Example SELECT * FROM …

mysql conditional-statements
How do I write a complex multi-line if condition in Ruby?

How do I write this multi-line, complex condition if statement in Ruby? if ( (aa != nil && self.prop1 == aa.…

ruby if-statement conditional conditional-statements
Perl Switch Statement

Is there any way to run a block of code if none of the case blocks were matched? For instance: …

perl switch-statement case conditional-statements