Type of object

Post your questions and help other users.

Moderator: Martin

Post Reply
User avatar
fagci
Posts: 80
Joined: 03 Feb 2017 13:06
Location: Novosibirsk, RU
Contact:

Type of object

Post by fagci » 25 Jul 2017 05:09

Is there some kind of "instanceof" or isArray() operators to get type of object?

Example:

I have a map with multiple types of objects, and I want to iterate them if type of them is list or map.

Now I develop flow to get list of applications, which can interact as Tasker/Automagic/* plugin.
All systems nominal.

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Type of object

Post by Martin » 25 Jul 2017 14:13

There are no such functions yet, but I've added it for the next update.
You could probably use the Java features to determine the type of the variable but it might look complicated.

Regards,
Martin

Post Reply