Chef cookbook Development

Hi all,

I am planning to work on a cookbook where i need to run some items on bash shell resource. There are multiple items and i need to place under separate bash resources. I want them these resources to get executed individual based on the parameter from attributes(control via attributes).

Now i have a value set as true at attributes and on the recipe i use if statement for each bash resource and perform operation based on value.

Than if statement is there any other way i can use to work.

Thanks

Rajesh.R