if multiple conditions code example
Example 1: Numpy where function multiple conditions
dists[(dists >= r) & (dists <= r+dr)]
# or if you want to use np.where #
dists[(np.where((dists >= r) & (dists <= r + dr)))]
Example 2: multiple if condition in excel
IF( condition1, value_if_true1, IF( condition2, value_if_true2, value_if_false2 ))
Example 3: ifdef multiple conditions
#if defined(CONDITION1) || defined(CONDITION2)