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.

RequireJS conditional dependencies

I'm trying to define a module with conditional dependencies (depending on Modernizr test). I've done something that works but feel …

conditional modernizr requirejs
How to run custom action based on condition?

I'm trying to run a custom action (delete a certain file) based on the windows version. I know how to …

wix windows-installer conditional conditional-statements custom-action
Hotkey if statement using multiple conditionals

The following script works to open Firefox's location/"awesome" bar from anywhere using control-l, except when using Acrobat/Adobe reader. …

conditional autohotkey
Declaring and initializing a variable in a Conditional or Control statement in C++

In Stroustrup's The C++ Programming Language: Special Edition (3rd Ed), Stroustrup writes that the declaration and initialization of variables in …

c++ compiler-construction conditional declaration
ASP.NET MVC - Render section conditionally in Layout

i have following code in my _Layout.cshtml: @if (SiteConfig.Instance.HasCustomMarkup) { @RenderSection("bodyPart1", false) @RenderBody() @RenderSection("bodyPart2", false) } else { &…

asp.net layout conditional render
Ruby 'is_a?' class or module required (TypeError)

I'm playing around with Ruby and trying create a little bank account program. When I run this particular line of …

ruby while-loop integer conditional typeerror
(Swift) Initializer for conditional binding must have Optional type, not 'AVAudioInputNode'

I am trying to create a speech to text function and I am getting the error: Initializer for conditional binding …

xcode conditional optional speech avaudioengine
mysql insert if row does not exist already in a table with NO UNIQUE FIELDS

Looking for a while now already for how to accomplish this. Seems that all solutions need unique fields with indexes.

mysql insert conditional not-exists
required attribute of inputText should depend on submitted value of another component

I have a form which contains a dropdown and two input fields. <h:selectOneMenu /> <h:inputText /> &…

jsf input conditional required
Conditional references in .NET project, possible to get rid of warning?

I have two references to a SQLite assembly, one for 32-bit and one for 64-bit, which looks like this (this …

c# reference project conditional compiler-warnings