Hi Aditya,
Yes , you can set the visibility using the expression.
for example,
$currentObject/attribute1!=empty.
Can you tell me what is your requirement. I mean what you want the expression to show/hide the button.
Here i am getting an error