Olympe Engine 2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
Classes | Namespaces
Task_Compare.h File Reference

Atomic task that compares two values and returns Success or Failure. More...

#include "../../IAtomicTask.h"
+ Include dependency graph for Task_Compare.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Olympe::Task_Compare
 Atomic task that returns Success if a comparison holds, Failure otherwise. More...
 

Namespaces

namespace  Olympe
 < Provides AssetID and INVALID_ASSET_ID
 

Detailed Description

Atomic task that compares two values and returns Success or Failure.

Author
Olympe Engine
Date
2026-02-23

Task_Compare evaluates a comparison between "LHS" and "RHS" parameters using the "Operator" parameter and returns Success if the comparison is true, Failure otherwise.

Parameters (ParameterMap): "LHS" (Int|Float|String) - left-hand side value (required) "RHS" (Int|Float|String) - right-hand side value (required, same type) "Operator" (String) - one of: "==", "!=", "<", ">", "<=", ">=" (required; "<","<=",">",">=" numeric only)

Returns: Success if the comparison is true. Failure if the comparison is false, or if parameters are invalid.

C++14 compliant - no C++17/20 features.

Definition in file Task_Compare.h.