How to check if unit already exists? #2659
Answered
by
josdejong
petermarks12
asked this question in
Q&A
-
Hi, I have created a custom unit using math.createUnit(). Now, I want to check if that unit exist or not, so that I should not end up creating same unit again. Is there any way to retrieve list of all units, so that I can verify this? |
Beta Was this translation helpful? Give feedback.
Answered by
josdejong
Mar 4, 2018
Replies: 1 comment
-
Hm, you could use |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
josdejong
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hm, you could use
math.type.Unit.isValuelessUnit('cm')
I think.