Skip to content

Commit

Permalink
Change = to == for equality tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JaredDavis22 committed Jul 29, 2024
1 parent 7494257 commit d00801a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ endif::[]
rule "All full-time employees have red ID badges"
when
forall( $emp : Employee( type == "fulltime" )
Employee( this == $emp, badgeColor = "red" ) )
Employee( this == $emp, badgeColor == "red" ) )
then
// True, all full-time employees have red ID badges.
end
Expand All @@ -176,7 +176,7 @@ To state that all facts of a given type in the working memory of the {RULE_ENGIN
----
rule "All employees have red ID badges"
when
forall( Employee( badgeColor = "red" ) )
forall( Employee( badgeColor == "red" ) )
then
// True, all employees have red ID badges.
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2062,7 +2062,7 @@ image::language-reference/forall.png[align="center"]
rule "All full-time employees have red ID badges"
when
forall( $emp : /employees[ type == "fulltime" ]
/employees[ this == $emp, badgeColor = "red" ] )
/employees[ this == $emp, badgeColor == "red" ] )
then
// True, all full-time employees have red ID badges.
end
Expand All @@ -2077,7 +2077,7 @@ To state that all facts of a given type in the working memory of the {RULE_ENGIN
----
rule "All employees have red ID badges"
when
forall( /employees[ badgeColor = "red" ] )
forall( /employees[ badgeColor == "red" ] )
then
// True, all employees have red ID badges.
end
Expand Down

0 comments on commit d00801a

Please sign in to comment.