forked from 0ad/0ad
12 lines
242 B
JavaScript
Executable File
12 lines
242 B
JavaScript
Executable File
function GetAttrib(getAttribName)
|
|
{
|
|
// Simple helper function that elegantly checks if an entity attribute exists.
|
|
// Returns blank if it doesn't, or it's value if it does.
|
|
|
|
if (getAttribName)
|
|
return getAttribName;
|
|
else
|
|
return "";
|
|
}
|
|
|