API:GuildBoard GetNextGuildIDName

local guildID, name = GuildBoard_GetNextGuildIDName( guildID );

Arguments
guildID - ID of the guild

Example
Make the following macro /script guildID, name = GuildBoard_GetNextGuildIDName( 10 ); /script DEFAULT_CHAT_FRAME:AddMessage(name)

Returns the name of the guild with the number 10. If nothing is shown, the guild doesnt exist anymore. Works from everywhere.