evalBool statement is excellent when you need to apply logic. To provide some more flexibility I added a new feature in version 0.2.1 of libJanet.dll. The new method called contains and is represented by ~>. To check framework version, go to terminal tab and type %about%.
The example below will evaluate if the word "Rain" is included in the result of %todayconditions% function (more on functions and weather feed configuration).
Evaluation
Response for true part
Response for false part
Debug
You can also add some stuff on final synthesis for "You don't need your umbrella" like "Today conditions is %todayconditions%. You don't need your umbrella!" which will result "Today conditions is Sunny. You don't need your umbrella!".
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.