Top "Conditional" 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.

If Exist or Exists?

Is it possible to test two EXISTS conditions in a single IF SQL statement? I've tried the following. IF EXIST (…

sql sql-server conditional exists
Conditional unique constraint with multiple fields in oracle db

I have this table: XPTO_TABLE (id, obj_x, date_x, type_x, status_x) I wanna create a unique …

sql oracle conditional unique unique-constraint
Java String initialization

Which do you prefer and why" String myString = null; if(someCondition) myString = "something"; else myString = "something else"; OR String myString = ""; …

java conditional preferences variable-initialization
Gnuplot: conditional plotting ($2 == 15 ? $2 : '1/0') with lines

My data looks like this: 10:15:8:6.06000000: 10:15:2:19.03400000: 10:20:8:63.50600000: 10:20:2:24.71800000: 10:25:8:33.26200000: 10:30:8:508.23400000: 20:15:8:60.06300000: 20:15:2:278.63100000: 20:20:8:561.18000000: 20:20:2:215.46600000: 20:25:8:793.36000000: 20:25:2:2347.52900000: 20:30:8:5124.98700000: 20:30:2:447.41000000: (...) I'd like to plot a "linespoints" plot with $1 on the x-axis, and 8 different lines representing …

conditional gnuplot
Making inlines conditional in the Django admin

I have a model that I want staff to be able to edit up to the date for the event. …

django django-admin conditional inlines
VueJs v-for how to check list undefined before continue

Refer to the template below, how to add condition to make sure the menu is not undefined inside the v-for …

vue.js conditional undefined v-for
Ansible: Unexpected templating type error: expected string or buffer

I have a register with the following contents: ok: [hostname] => { "changed": false, "msg": { "changed": true, "cmd": "cd /tmp\n ./…

string ansible conditional buffer templating
What are the PHP operators "?" and ":" called and what do they do?

What are the ? and : operators in PHP? For example: (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER)

php syntax conditional conditional-operator
Too many if statements

I have some topic to discuss. I have a fragment of code with 24 ifs/elifs. Operation is my own class …

python if-statement conditional code-readability code-maintainability