Tag

conditional

0 views collected around this technical thread.

Raymond Ops
Raymond Ops
May 14, 2025 · Operations

Master Bash Test Commands: Conditional Expressions, Comparisons, and File Checks

This article explains Bash's test command and related conditional operators, demonstrates various if/then syntaxes, arithmetic and string comparisons, and shows how to test file attributes with practical code examples for Linux shell scripting.

bashconditionallinux
0 likes · 6 min read
Master Bash Test Commands: Conditional Expressions, Comparisons, and File Checks
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Feb 12, 2025 · Backend Development

Master Spring Boot 3 Conditional Annotations with Real‑World Examples

This article introduces a continuously updated Spring Boot 3 case collection and PDF e‑book, then dives into the @Conditional annotation, custom condition interfaces, parameterized enhancements, SpringBootCondition usage, and multi‑condition combinations, providing complete code examples and test results.

Custom AnnotationJavaSpring Boot
0 likes · 9 min read
Master Spring Boot 3 Conditional Annotations with Real‑World Examples
IT Services Circle
IT Services Circle
May 29, 2024 · Fundamentals

Understanding the __name__ Variable in Python Scripts

This article explains how the __name__ variable is set when running Python scripts directly or importing them, demonstrates its behavior with multiple .py files, shows how unintended code can be executed, and introduces the if __name__ == '__main__' guard to control execution.

@ImportPython__name__
0 likes · 6 min read
Understanding the __name__ Variable in Python Scripts
php中文网 Courses
php中文网 Courses
Oct 25, 2023 · Backend Development

Using PHP 8 Match Expressions to Simplify Conditional Logic

The article introduces PHP 8's new Match expression, explains how it replaces verbose if‑elseif‑else chains with a concise, switch‑like syntax, demonstrates usage with code examples, and outlines its advantages such as readability, reduced redundancy, and built‑in default handling.

PHP8conditionalmatch
0 likes · 4 min read
Using PHP 8 Match Expressions to Simplify Conditional Logic
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Oct 19, 2023 · Backend Development

Master Spring Boot Core Annotations: @SpringBootApplication and Conditional Config

This article explains the essential Spring Boot annotations—including @SpringBootApplication, @EnableAutoConfiguration, @ComponentScan, and the various @Conditional family—detailing their purposes, composition, and usage with clear code examples for Java backend development.

AnnotationsBackend DevelopmentConfiguration
0 likes · 9 min read
Master Spring Boot Core Annotations: @SpringBootApplication and Conditional Config
Top Architect
Top Architect
Mar 16, 2022 · Backend Development

Deep Dive into SpringBoot Startup, Auto‑Configuration, Event‑Driven Architecture, and Conditional Annotations

This article provides an in‑depth analysis of SpringBoot’s startup process, automatic configuration mechanism, event‑driven architecture, and conditional annotation handling, illustrating key source code snippets and explaining how the framework loads and initializes beans, listeners, and embedded Tomcat server.

AutoConfigurationJavaSpringBoot
0 likes · 25 min read
Deep Dive into SpringBoot Startup, Auto‑Configuration, Event‑Driven Architecture, and Conditional Annotations
Python Programming Learning Circle
Python Programming Learning Circle
Mar 12, 2022 · Fundamentals

Understanding Python if Statements: Syntax, Examples, and Nested Conditions

This article explains Python's conditional statements, covering the if‑elif‑else syntax, important formatting rules, and multiple practical code examples—including simple if usage, dog age calculation, equality checks, a number‑guessing game, and nested conditions—to help beginners master flow control.

Tutorialbasicsconditional
0 likes · 6 min read
Understanding Python if Statements: Syntax, Examples, and Nested Conditions
Selected Java Interview Questions
Selected Java Interview Questions
Dec 25, 2021 · Backend Development

Implementation Principles of Spring Boot Auto‑Configuration

This article explains how Spring Boot’s auto‑configuration works by describing the role of @SpringBootApplication, the conditional annotations that drive bean creation, the use of META‑INF/spring.factories, and provides a step‑by‑step example of building a custom auto‑configuration module with full code samples.

AnnotationsAutoConfigurationJava
0 likes · 9 min read
Implementation Principles of Spring Boot Auto‑Configuration
Selected Java Interview Questions
Selected Java Interview Questions
Sep 19, 2021 · Backend Development

Designing a Multi‑Level Workflow Engine: From Simple Chains to Complex Conditional and Parallel Nodes

This article walks through the step‑by‑step design of a workflow engine, starting with a basic approval chain and progressively adding countersign, parallel, conditional, delegation, timeout, scripting, and progress‑tracking features, illustrating a tree‑based architecture and node‑state management.

Tree Structureapprovalbackend
0 likes · 12 min read
Designing a Multi‑Level Workflow Engine: From Simple Chains to Complex Conditional and Parallel Nodes
php中文网 Courses
php中文网 Courses
Nov 10, 2020 · Backend Development

Shell Script Conditional Structures: Using if and case Statements

This article introduces shell script conditional structures, explains the syntax of if (single, double, and multi-branch) and case statements, and provides step‑by‑step examples including a grading script and a start/stop/restart command script with full Bash code.

bashcaseconditional
0 likes · 5 min read
Shell Script Conditional Structures: Using if and case Statements
Python Programming Learning Circle
Python Programming Learning Circle
Feb 5, 2020 · Fundamentals

Why ‘if x is not None’ Beats ‘if not x’ in Python: Avoid Hidden Bugs

This article explains the three common ways to test for None in Python, reveals how using "if not x" can mistakenly treat other falsy values as None, and recommends the clear and safe "if x is not None" style endorsed by Google.

best-practicescode-styleconditional
0 likes · 3 min read
Why ‘if x is not None’ Beats ‘if not x’ in Python: Avoid Hidden Bugs
DevOps Cloud Academy
DevOps Cloud Academy
Aug 1, 2019 · Fundamentals

Python Control Flow: Conditional Statements, Loops, Iterators, and List Comprehensions

This article introduces Python's basic control flow constructs, including if/elif/else conditional statements, for and while loops with break/continue, iterator usage with Iterable and enumerate, and list comprehensions, providing example code snippets and their outputs for each concept.

IteratorLoopPython
0 likes · 4 min read
Python Control Flow: Conditional Statements, Loops, Iterators, and List Comprehensions
Java Captain
Java Captain
Jun 26, 2018 · Backend Development

Understanding Spring Boot Auto‑Configuration and the @Conditional Mechanism

This article explains Spring Boot's core features, the role of @Conditional in automatic configuration, demonstrates custom condition classes and annotations, and walks through the source code of Spring Boot's auto‑configuration infrastructure, including @SpringBootApplication, EnableAutoConfigurationImportSelector, and class‑path condition evaluation.

Auto‑ConfigurationBackend DevelopmentJava
0 likes · 17 min read
Understanding Spring Boot Auto‑Configuration and the @Conditional Mechanism