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.

What is the PHP syntax to check "is not null" or an empty string?

Possible Duplicate: Check if a variable is empty Simple PHP question: I have this stement: if (isset($_POST["password"]) &&…

php variables null conditional-statements
javascript: using a condition in switch case

Sorry for that dumb question. How can I use a condition for a case in the javascript switch-case language element? …

javascript conditional-statements select-case
Can I use conditional statements with EJS templates (in JMVC)?

and if yes, what is the syntax? My goal is to prepend an 's' to the word 'comment' when there …

conditional-statements ejs
SELECT query with CASE condition and SUM()

I'm currently using these sql statements. My table has the field CPaymentType which contains "Cash" or "Check". I can sum …

sql sql-server sum case conditional-statements
How can I check if a string only contains letters in Python?

I'm trying to check if a string only contains letters, not digits or symbols. For example: >>> only_…

python string conditional-statements
C error: Expected expression before int

When I tried the following code I get the error mentioned. if(a==1) int b =10; But the following is syntactically …

c syntax-error conditional-statements variable-declaration
What is the purpose of using WHERE 1=1 in SQL statements?

Possible Duplicates: Why would a sql query have “where 1 = 1” Why would someone use WHERE 1=1 AND <conditions> in a …

sql conditional-statements where
IN Clause with NULL or IS NULL

Postgres is the database Can I use a NULL value for a IN clause? example: SELECT * FROM tbl_name WHERE …

sql postgresql null conditional-statements in-clause
Simpler way to check if variable is not equal to multiple string values?

Current Codes: <?php // See the AND operator; How do I simplify/shorten this line? if( $some_variable !== 'uk' &&…

php if-statement conditional-statements
How to negate code in "if" statement block in JavaScript -JQuery like 'if not then..'

For example if I want to do something if parent element for used element hasn't got ul tag as next …

javascript jquery if-statement conditional-statements