Capture value of templated filter to using this value in if statement

Hello,

Does anyone has experience in writing lookml code which is able to capture value of template filter (I would like to use date range entered by the user) ?

Link from web about template filter value and using it in conditions:  https://cloud.google.com/looker/docs/templated-filters#templated_filters


After capturing the template filter value have you also used this in some if/case statements ? The two  statements I want to apply :

1. If the period selected in template filter is less then 25 full weeks please use 25 full weeks starting from the end_ date value entered to template filter.

2. If the period selected in the template filter is more then 25 full weeks please use period selected by the user.

Thanks. 

0 1 265