inventory template

inventory template

is it possible to implement if condition within inventory template?