Skip to content
  • Blog (1)
  • About Us
  • Tags
  • Donations
1SMARTchicken - Code Made Easy
  • Tutorials (195)
  • Reference (2173)
  • Snippets (69)

Tag: Conditional

1SMARTchicken - Code Made Easy

Tag: Conditional

  • Tutorials (195)
  • Reference (2173)
  • Snippets (69)
  • Blog (1)
  • About Us
  • Tags
  • Donations
1SMARTchicken - Code Made Easy
  • Tutorials (195)
  • Reference (2173)
  • Snippets (69)
1SMARTchicken - Code Made Easy

Tag: Conditional

  • Tutorials (195)
  • Reference (2173)
  • Snippets (69)
  • Home
  • Conditional
JavaScript Reference

JavaScript – Logical Operators

August 4, 2024 / JavaScript Operators, JavaScript Reference, Reference / Conditional, JS Operator

Logical operators are used to determine the logic between variables or values.

JavaScript Reference

JavaScript – Ternary Operator

August 4, 2024 / JavaScript Operators, JavaScript Reference, Reference / Conditional, JS Operator

The ternary (conditional) operator assigns a value to a variable based on a condition.

JavaScript Reference

JavaScript – break Statement

August 1, 2024 / JavaScript Reference, JavaScript Statements, Reference / Conditional, JS Statement, Loop

The break statement stops code execution within the switch, and also breaks out of a loop, continuing to execute code that comes after the loop.

JavaScript Reference

JavaScript – continue Statement

August 1, 2024 / JavaScript Reference, JavaScript Statements, Reference / Conditional, JS Statement, Loop

The continue statement breaks an iteration in the loop, if a specified condition occurs, and then continues with the next iteration in the loop.

JavaScript Reference

JavaScript – do…while Statement

August 2, 2024 / JavaScript Reference, JavaScript Statements, Reference / Conditional, JS Loop, JS Statement, Loop

The do…while statement defines a code block to be executed at least once, and repeated as long as a condition is true.

JavaScript Reference

JavaScript – for Statement

August 2, 2024 / JavaScript Reference, JavaScript Statements, Reference / Conditional, JS Loop, JS Statement, Loop

The for statement defines a block of code to be executed as long as a specified condition is true.

JavaScript Reference

JavaScript – for…in Statement

August 2, 2024 / JavaScript Reference, JavaScript Statements, Reference / Conditional, JS Loop, JS Statement, Loop

The for…in statement loops over the properties of an object, executing a block of code inside the loop once for each item found.

JavaScript Reference

JavaScript – for…of Statement

August 2, 2024 / JavaScript Reference, JavaScript Statements, Reference / Conditional, JS Loop, JS Statement, Loop

The for…of statement loops over the values of any iterable, executing a block of code inside the loop once for each item found.

JavaScript Reference

JavaScript – if…else Statement

August 2, 2024 / JavaScript Reference, JavaScript Statements, Reference / Conditional, JS Statement

The if…else statement executes a block of code if a specified condition is true, and optionally, another block of code if false.

JavaScript Reference

JavaScript – switch Statement

August 2, 2024 / JavaScript Reference, JavaScript Statements, Reference / Conditional, JS Statement

The switch statement executes different blocks of code depending on set conditions, and uses the break keyword to break out of the switch block.

JavaScript Reference

JavaScript – while Statement

August 2, 2024 / JavaScript Reference, JavaScript Statements, Reference / Conditional, JS Loop, JS Statement, Loop

The while statement defines a code block to be executed for as long as a condition is true.

JavaScript Reference

JavaScript – List of Statements

July 28, 2024 / JavaScript Reference, JavaScript Resources, Reference / Conditional

This is a quick reference list of JavaScript statements with examples of how they are used.

PHP Reference

PHP – and Keyword

July 25, 2024 / PHP Keywords, PHP Reference, Reference / Conditional, Keyword

The PHP and keyword is a logical operator and is used to combine conditional statements.

PHP Reference

PHP – case Keyword

July 25, 2024 / PHP Keywords, PHP Reference, Reference / Conditional, Keyword

The PHP case keyword is used to jump to a line of code when an expression has a specific value in a switch conditional.

PHP Reference

PHP – default Keyword

July 25, 2024 / PHP Keywords, PHP Reference, Reference / Conditional, Keyword

The PHP default keyword is used in a switch block to specify which code to run when none of the case statements were matched by the expression.

PHP Reference

PHP – else Keyword

July 25, 2024 / PHP Keywords, PHP Reference, Reference / Conditional, Keyword

The PHP else keyword specifies a block of code which should run when the condition of an if statement is not met.

PHP Reference

PHP – elseif Keyword

July 25, 2024 / PHP Keywords, PHP Reference, Reference / Conditional, Keyword

The PHP elseif keyword tests a new condition if the condition of a previous if or elseif statement was not met.

PHP Reference

PHP – endif Keyword

July 25, 2024 / PHP Keywords, PHP Reference, Reference / Conditional, Keyword

The PHP endif keyword is used to mark the end of an if conditional which was started with the if, or elseif syntax.

PHP Reference

PHP – endswitch Keyword

July 25, 2024 / PHP Keywords, PHP Reference, Reference / Conditional, Keyword

The PHP endswitch keyword is used to mark the end of a switch conditional which was started with the switch syntax.

PHP Reference

PHP – if Keyword

July 26, 2024 / PHP Keywords, PHP Reference, Reference / Conditional, Keyword

The PHP if keyword is used to create an if conditional. The elseif and else keywords can then be used to run code when the if condition is not met.

1 2 Next →

or View All Tags

Tutorials

  • HTML Tutorials (40)
  • CSS Tutorials (45)
    • CSS Flexbox (12)
  • JavaScript Tutorials (18)
  • jQuery Tutorials (13)
  • PHP Tutorials (0)
  • SQL Tutorials (0)
  • Python Tutorials (79)
    • Python File Handling (4)
    • Python and MySQL (11)
  • WordPress Tutorials (0)

Reference

  • HTML Reference (244)
    • HTML Tags (107)
    • HTML Attributes (46)
    • HTML Events (76)
    • HTML Resources (15)
  • CSS Reference (309)
    • CSS Selectors (55)
    • CSS Properties (220)
    • CSS Functions (17)
    • CSS Resources (17)
  • JavaScript Reference (556)
    • JavaScript Selectors (7)
    • JavaScript Operators (12)
    • JavaScript Statements (17)
    • JavaScript Methods (285)
    • JavaScript Properties (162)
    • JavaScript RegExp (45)
    • JavaScript Resources (28)
  • jQuery Reference (220)
    • jQuery Selectors (54)
    • jQuery Methods (140)
    • jQuery Ajax Methods (16)
    • jQuery Properties (17)
    • jQuery Resources (9)
  • PHP Reference (460)
    • PHP Keywords (59)
    • PHP Functions (400)
    • PHP Constants (0)
    • PHP Resources (1)
  • SQL Reference (290)
    • SQL Keywords (59)
    • MySQL Functions (138)
    • SQL Server Functions (83)
    • SQL Resources (10)
  • Python Reference (94)
    • Python Methods (86)
    • Python Resources (8)
  • WordPress Reference (0)

Snippets

  • HTML Snippets (3)
  • CSS Snippets (12)
  • JavaScript Snippets (5)
  • jQuery Snippets (8)
  • PHP Snippets (1)
  • SQL Snippets (3)
  • Python Snippets (1)
  • WordPress Snippets (36)
1SMARTchicken - Code Made Easy

333 Washington Blvd.
Suite 126
Marina del Rey, CA 90292
United States

contact2025@1smartchicken.com

  • About Us
  • Privacy Policy
  • Cookie Policy
  • Terms & Conditions

Search for Code:

or View All Tags

Copyright © 2025 1SMARTchicken | All Rights Reserved.