YAML with logic