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.

Test if a string contains any of the strings from an array

How do I test a string to see if it contains any of the strings from an array? Instead of …

java string if-statement
PivotTable to show values, not sum of values

I'm wanting to display a pivot table and for it to show me the actual values, one on each row, …

excel if-statement excel-formula excel-2007 pivot-table
Check if a value is within a range of numbers

I want to check if a value is in an accepted range. If yes, to do something; otherwise, something else. …

javascript if-statement
Using NOT operator in IF conditions

Is it really a good practice to avoid using NOT operator in IF conditions in order to make your code …

java if-statement boolean-operations
`IF` statement with 3 possible answers each based on 3 different ranges

I have 3 ranges of numbers and the answer depends on the range. 75-79=0.255 80-84=0.327 85+ =0.559 I tried to create an equation …

excel if-statement worksheet-function
VBA: Conditional - Is Nothing

There is an If condition in a VBA application as seen below: If Not My_Object Is Nothing Then My_…

vba if-statement excel excel-2007 nothing
Does Go have "if x in" construct similar to Python?

Without iterating over the entire array, how can I check if x in array using Go? Does the language have …

if-statement go
Is double square brackets [[ ]] preferable over single square brackets [ ] in Bash?

A co-worker claimed recently in a code review that the [[ ]] construct is to be preferred over [ ] in constructs like if [ "`…

bash if-statement syntax
IF a cell contains a string

How can I assign a value to cells if it's neighbour contains a specific string? For example, fields in column …

excel if-statement contains
If statement in aspx page

I want to write a basic if statement on my site to display either item 1 or item 2 depending on if …

asp.net if-statement