Does attributes from one cookbook will be inherited?

Hello team!

I have cookbook "A" with recipe "one" with attribute "x".
I include this recipe "one" in another cookbook "B" in recipe "two". Will attribute "x" from a cookbook "A" available in cookbook "B" so i can rely on it in "if" condition for example?

In general, yes. This is why attributes for different cookbooks have distinct naming schemes, so that the attributes can be read and compiled at run-time. And it's part of why some cookbooks have "requires" statements about other cookbooks in their metadata.json.