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.

Can you use if/else conditions in CSS?

I would like to use conditions in my CSS. The idea is that I have a variable that I replace …

css stylesheet conditional-statements
Replace all elements of Python NumPy Array that are greater than some value

I have a 2D NumPy array and would like to replace all values in it greater than or equal to …

python arrays numpy replace conditional-statements
How to check whether a str(variable) is empty or not?

How do I make a: if str(variable) == [contains text]: condition? (or something, because I am pretty sure that what …

python string conditional-statements
MySQL select with CONCAT condition

I'm trying to compile this in my mind.. i have a table with firstname and lastname fields and i have …

mysql select conditional-statements where concat
querying WHERE condition to character length?

I have a database with a large number of words but i want to select only those records where the …

sql conditional-statements where
Replacing values from a column using a condition in R

I have a very basic R question but I am having a hard time trying to get the right answer. …

r dataframe conditional-statements
Conditional Replace Pandas

I have a DataFrame, and I want to replace the values in a particular column that exceed a value with …

python pandas replace conditional-statements series
Using OR & AND in COUNTIFS

I would like to include an "AND" condition for one of the conditions I have in my COUNTIFS clause. Something …

excel formula conditional-statements
How do I test if a variable does not equal either of two values?

I want to write an if/else statement that tests if the value of a text input does NOT equal …

javascript if-statement conditional-statements equals boolean-logic