# Revision history [back]

### How to give a default value to Mistral workflow after a conditional checking

I am trying to pass a default value to a parameter if the value is not set in a Mistral workflow. How can I do this? This is my code sample, I am passing a these values using a .meta file. I want to know is there a way I can set a default value in this .meta file or check if the value is not set then take this value as the default in the action itself (shown below)?

LifecycleConfiguration:
Rules:
- Expiration:
Days: <% $.bucket_days %> ID: "some-id" Filter: Prefix: "<%$.bucket_prefix %>"
Status: Enabled
NoncurrentVersionExpiration:
NoncurrentDays: <% \$.bucket_noncurrentversion %>