ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   Wish List (https://www.esoui.com/forums/forumdisplay.php?f=177)
-   -   [outdated] could GetCollectibleNickname return nil instead of ""? (https://www.esoui.com/forums/showthread.php?t=7596)

manavortex 01/30/18 01:23 AM

[outdated] could GetCollectibleNickname return nil instead of ""?
 
Hey there,

could GetCollectibleNickname(collectibleId) return nil instead of an empty string, or would that break the UI?
it's far more convenient to write
Lua Code:
  1. local name = GetCollectibleNickname(collectibleId) or GetCollectibleName(collectibleId)
instead of
Lua Code:
  1. local name = GetCollectibleNickname(collectibleId)
  2. if name == "" then GetCollectibleName(collectibleId) end


All times are GMT -6. The time now is 06:47 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI