Top "If-statement" questions

An "if" statement is a flow control structure in most programming languages that branches execution flow depending on a binary condition, generally evaluated at runtime.

Java String - See if a string contains only numbers and not letters

I have a string that I load throughout my application, and it changes from numbers to letters and such. I …

java string if-statement
How to write an inline IF statement in JavaScript?

How can I use an inline if statement in JavaScript? Is there an inline else statement too? Something like this: …

javascript if-statement ternary-operator conditional-operator
How to make "if not true condition"?

I would like to have the echo command executed when cat /etc/passwd | grep "sysa" is not true. What am …

bash if-statement syntax boolean-expression
jQuery: Test if checkbox is NOT checked

I'm having trouble figuring this out. I have two checkboxes (in the future will have more): checkSurfaceEnvironment-1 checkSurfaceEnvironment-2 Basically, I …

jquery if-statement
If two cells match, return value from third

Here's a simple explanation of what I'm having trouble with. Column A: List of 2300 order numbers Column B: Email Address …

excel if-statement excel-formula excel-2013 excel-match
ORA-06502: PL/SQL: numeric or value error: character string buffer too small

I tried the following code different ways, like by taking out the while or the if, but when I put …

sql oracle if-statement plsql while-loop
How to implement if-else statement in XSLT?

I am trying to implement an if -else statement in XSLT but my code just doesn't parse. Does anyone have …

xml xslt if-statement
JavaScript single line 'if' statement - best syntax, this alternative?

It's been clearly put, although opinion none the less, that forgoing curly brackets on a single line if statement is …

javascript if-statement
break out of if and foreach

I have a foreach loop and an if statement. If a match is found i need to ultimately break out …

php if-statement foreach break
Pythonic way to combine FOR loop and IF statement

I know how to use both for loops and if statements on separate lines, such as: >>> a = [2,3,4,5,6,7,8,9,0] ... …

python loops if-statement for-loop