Use template in custom sentence list

Is it possible to use an “if” template in a custom sentence list. Basically I have a fan that uses a different percentage for it’s low, med and high settings .vs my other fans. I want to have multiple low settings that are selected by speech for each fan. Not sure this is possible and may have to create another custom sentence file geared toward that fan only.

lists:
  fan_speed:
    values:
      - in: "low"
        out: "33"
      - in: "medium"
        out: "67"
      - in: "high"
        out: "100"
      - in: "low"
        out: "30"

Here is an example with ifs in an intent script (so the responses to your custom sentences), not sure, if this is helpful: https://github.com/arsaboo/homeassistant-config/blob/949a0ef28911f0bd3832e61365e5b58731915b4b/intent_script.yaml

I’ve attempted in this manner but not working with custom sentences. Have to just keep trying I guess.

My main issue as stated is I have a fan that uses a different speed percent so I just need the custom sentence to apply a different percent to the device when using Assist.