How do I check multiple items in a TYPE

Blitz3D Forums/Blitz3D Beginners Area/How do I check multiple items in a TYPE

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Example as applicable if my understand of type is correct:

[code]
Type seacreature
Field name
Field color
End Type

fish.seacreature = new seacreature
fish/name goldfish
fish/color orange

fish.seacreature = new seacreature
fish/name nemo
fish/color orange

fish.seacreature = new seacreature
fish/name shark
fish/color grey

for fish.seacreature = each seacreature
c = fish/color:n = fish/name
if c = orange then print n + "is orange!"
next
[/Code]

Am I on the right track? :)

+BlackD