You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p><code>!=</code> tests only for inequality, and doesn’t compare whether an attribute is greater or less than a particular value. Therefore, <code>!=</code> can be used to filter any value.</p>
416
416
417
-
<p>You can use inequality operators inside records or outside of them. Inside of records, you can filter an attribute on a single value. Outside of records, you have more freedom to filter on multiple values. For instance, if you want only records with an attribute between a maximum and minimum value, you can write something like <code>min-value < variable > max-value</code>.</p>
417
+
<p>You can use inequality operators inside records or outside of them. Inside of records, you can filter an attribute on a single value. Outside of records, you have more freedom to filter on multiple values. For instance, if you want only records with an attribute between a maximum and minimum value, you can write something like <code>min-value < variable < max-value</code>.</p>
<spanclass="w"></span><spanclass="p">[</span><spanclass="nt">#div</span><spanclass="w"></span><spanclass="x">text</span><spanclass="nf">:</span><spanclass="w"></span><spanclass="s">"{{name}} is doing fine"</span><spanclass="p">]</span><spanclass="w"></span>
<p>You can be very specific with filters. Select students named “John” in 11th or 12th grade with a GPA between 2.0 and 3.0, and who don’t attend “West” high school.</p>
<spanclass="w"></span><spanclass="p">[</span><spanclass="nt">#div</span><spanclass="w"></span><spanclass="x">text</span><spanclass="nf">:</span><spanclass="w"></span><spanclass="s">"{{name}} is doing fine"</span><spanclass="p">]</span><spanclass="w"></span>
Copy file name to clipboardExpand all lines: src/handbook/inequality.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ Attributes can be filtered using inequality operators, including `>`, `>=`, `<`,
35
35
36
36
`!=` tests only for inequality, and doesn't compare whether an attribute is greater or less than a particular value. Therefore, `!=` can be used to filter any value.
37
37
38
-
You can use inequality operators inside records or outside of them. Inside of records, you can filter an attribute on a single value. Outside of records, you have more freedom to filter on multiple values. For instance, if you want only records with an attribute between a maximum and minimum value, you can write something like `min-value < variable > max-value`.
38
+
You can use inequality operators inside records or outside of them. Inside of records, you can filter an attribute on a single value. Outside of records, you have more freedom to filter on multiple values. For instance, if you want only records with an attribute between a maximum and minimum value, you can write something like `min-value < variable < max-value`.
39
39
40
40
## Examples
41
41
@@ -54,7 +54,7 @@ Select students with a GPA over 2.0 but less than 3.0
54
54
```eve
55
55
search @test-data
56
56
[#student name GPA]
57
-
2.0 >= GPA < 3.0
57
+
2.0 <= GPA < 3.0
58
58
59
59
bind @browser
60
60
[#div text: "{{name}} is doing fine"]
@@ -65,7 +65,7 @@ You can be very specific with filters. Select students named "John" in 11th or 1
65
65
```eve
66
66
search @test-data
67
67
students = [#student name: "John", grade >= 11, school != "West" ]
0 commit comments