![]() |
[Generators] Object type via relation? |
Post Reply
|
| Author | |
bullitt168
Member
Joined: 28.Apr.2008 Location: Bremen, Germany Points: 4 |
Post Options
Thanks(0)
Quote Reply
Topic: [Generators] Object type via relation?Posted: 28.Apr.2008 at 12:06 |
|
Hello!
I want to check what kind of object is connected to a relation, something like foreach >RelationName { ~From.().type } but this doesn't work, neigher ~From.type or anything similar. My workaround now looks like foreach >RelationName { do ~From.() { variable 'fromType' write type close } $fromType } Is there a better way to get the type of connected objects? Thank you, Bastian |
|
![]() |
|
stevek
MetaCase
Joined: 11.Mar.2008 Points: 643 |
Post Options
Thanks(0)
Quote Reply
Posted: 28.Apr.2008 at 12:21 |
|
Just use this:
foreach >RelationName {
do ~From.() { type } } |
|
![]() |
|
bullitt168
Member
Joined: 28.Apr.2008 Location: Bremen, Germany Points: 4 |
Post Options
Thanks(0)
Quote Reply
Posted: 28.Apr.2008 at 12:43 |
|
Thank you for the quick reply, that's what I was looking for
|
|
![]() |
|
Post Reply
|
|
| Tweet |
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |