Simple, just some in-line python code. Something like (untested):

#if 'some_string' in $my_string
    ## 'some_string' is in $my_string, do something 
    #pass
#else
    ## 'some_string' is not in $my_string, do something else 
    #pass
#end if

Gary

On Tuesday, 14 September 2021 at 10:33:59 UTC+10 [email protected] wrote:

> Wondering if there is a way using Cheetah to check for a string value in a 
> variable.

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/07373340-01bc-4652-a97e-1fb363b1347cn%40googlegroups.com.

Reply via email to