Query Minecraft mcp chest name?

La
- in Servers
5

On servers there are ChestMenus with custom names. And I want to know how to return the name of one of these chests, so how:

Public boolean chestName (string name) {

If (chestname.equals (name)) {

Return true;

} else

Return false

ro

Boolean can only return true or false

La

So whether the parameter string matches the name of the chest

La

If so, then true

ro

If (chestname == name) {

}

I would not use Equals in this case

La

But how do I define chestname