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.

Conditional Count on a field

If I had a table like this: jobId, jobName, Priority Whereby Priority can be an integer between 1 to 5. Since I …

sql count conditional-statements
Check if year is leap year in javascript

function leapYear(year){ var result; year = parseInt(document.getElementById("isYear").value); if (years/400){ result = true } else if(years/100){ result = false } …

javascript date conditional-statements date-arithmetic
Multiple 'or' condition in Python

I have a little code issue and it works with IDLE and not with Eclipse, can I write this : if …

python conditional-statements multiple-conditions
Multiple conditions in Excel conditional formatting

I'm fairly new to Excel and so not very experienced, but I'm trying to get an entire row to highlight …

excel conditional-statements formula conditional-formatting
Two conditions in one if statement does the second matter if the first is false?

Okay, so I have this piece of code tested and I found there isn't any exception thrown out. public static …

java if-statement conditional-statements
How to compare a char?

I am learning c. I have a question. Why doesn't my program work? #include<stdio.h> #include<…

c char conditional-statements assignment-operator
Removing the IE10 Select Element Arrow

So, with Mozilla and WebKit I have a half-decent solution replacing the arrow on the select box using appearance: none; …

css internet-explorer-10 conditional-statements
Python Conditional Variable Setting

For some reason I can't remember how to do this - I believe there was a way to set a …

python variables if-statement conditional-statements
JavaScript - get array element fulfilling a condition

I'm learning JavaScript using W3C and I didn't find an answer to this question. I'm trying to make some …

javascript arrays conditional-statements
Parentheses in Python Conditionals

I have a simple question regarding the use of parentheses in Python's conditional statements. The following two snippets work just …

python conditional-statements parentheses