Depends on condition to display multiple field


I’m just curious, if there is a way to display multiple field with one depends on condition? If can, please guide me.

You can put the same condition on multiple fields,
eval:doc.field_name == “Yes”

Thanks. Already figure out. Actually, Its my mistake because I didnt realize that there was a space in front of code. That is why the code didnt work. Sorry and thanks for your time by the way.