I want an ahk script that compares a string. If the word "departed" is present, return `True`, if "boarding" is present return `False`. Store the string in a variable called `status`.
system
I want an ahk script that compares a string. If the word "departed" is present, return `True`, if "boarding" is present return `False`. Store the string in a variable called `status`.
user
Sure, no problem!

```
status = "flight 826 is now boarding"
 
if (InStr("departed", status))
{
   Return True
}
 
if (InStr("boarding", status))
{
   Return False
}
```
assistant
<|system|>
</s>
<|user|>
I want an ahk script that compares a string. If the word "departed" is present, return `True`, if "boarding" is present return `False`. Store the string in a variable called `status`.</s>
<|assistant|>
Sure, no problem!

```
status = "flight 826 is now boarding"
 
if (InStr("departed", status))
{
   Return True
}
 
if (InStr("boarding", status))
{
   Return False
}
```</s>
