>= : Greater Than or Equal Operator
On this page
Summary
Compare if the left value is greater than or equal to the right value.
Syntax
Precedence
Priority level in expression evaluation (1 = highest, 10 = lowest): 6
Evaluated after: ^, *, /, %, +, -
Evaluated before: ==, !=, ??, &&, ||
Operands
| Position | Type | Description |
|---|---|---|
| Left | Comparable | First value to compare |
| Right | Comparable | Second value to compare |
Returns
Type: Boolean
true if left operand is greater than or equal to right operand, false otherwise.
Examples
Age Verification
Data:
doc.Params["model"] = new {
age = 18
};
Output:
<div class="eligible">
<p>✓ Age requirement met (18 years old)</p>
</div>
Passing Grade
Data:
doc.Params["model"] = new {
score = 85
};
Output:
<div class="pass">
<h3>Passed</h3>
<p>Score: 85/100</p>
</div>
Grade Classification
Free Shipping Eligibility
Data:
doc.Params["model"] = new {
orderTotal = 65.00m
};
Output:
<div class="free-shipping">
<strong>✓ Free Shipping Eligible</strong>
<p>Order total: $65.00</p>
</div>
Access Level Validation
Minimum Quantity Check
Notes
- Works with numbers, dates, and comparable types
- Includes equality (
=) unlike>operator - String comparison is case-sensitive and uses lexicographic ordering
- Date comparison compares chronological order
- Cannot compare incompatible types
- Commonly used with `` for conditional rendering
- Can be combined with logical operators (
&&,||) - Very common for threshold checks and eligibility validation