any way to shorthen this? ``` val a...
# getting-started
e
any way to shorthen this?
Copy code
val animName =
                        if (it.hasAttribute("name"))
                            it.getAttribute("name")
                        else if (it.hasAttribute("id"))
                            it.getAttribute("id")
                        else
                            "animation_${mAnimationClipLibrary.size}"