Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Scarn
Apprentice


Joined: 24 Jul 2005
Posts: 137

PostPosted: Wed Feb 25, 2015 3:54 am   

Number of entries in a variable?
 
Is there a command that I can see a number of values in a variable.

For example.

#VAR TEST {Orc|Troll|Warg}

command to return the value 3?

Something like:

#SHOW %count(@TEST)

Obviously count doesn't work, wondering if there is a function.
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4671
Location: Pensacola, FL, USA

PostPosted: Wed Feb 25, 2015 5:14 am   
 
%numitems
_________________
Discord: Shalimarwildcat
Reply with quote
Scarn
Apprentice


Joined: 24 Jul 2005
Posts: 137

PostPosted: Sat Feb 28, 2015 11:39 pm   
 
Ah, so simple! Thanks a lot. I'm learning C#, so between the two languages I keep forgetting basic stuff!
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net