Forum Groups
  All forums
    Help & Feedback
      Work in progress
      Finished Art
      Non-Max related

Featured Threads
  inspiration alert!!!
(37 replies)
  Indespensible MaxScripts, Plugins and 3rd Party Tools
(37 replies)
  The allmighty FREE Resources Thread !
(17 replies)
  spam alert!!!
(4886 replies)
  Maxforums member photo gallery index
(114 replies)
  Maxforums Member Tutorials
(89 replies)
  three cheers to maxforums...
(240 replies)
  101 Things you didnt know in Max...
(198 replies)
  A Face tutorial from MDB101 :D
(95 replies) Members Gallery
(516 replies)
(637 replies)
  Dub's Maxscript Tutorial Index
(119 replies)

Maxunderground news unavailable

Maxscript multiple conditions
show user profile  3joez
What is the syntax to express three conditions? Something like

if $ == undefined
do something
if $ == geometry
then do something else
else $ != lights
do some other action

I've totally made that up, just to explain.
Am I right in thinking that I need this sequence "if-if-then-else" or what?

read 619 times
10/29/2012 4:32:38 PM (last edit: 10/29/2012 4:32:38 PM)
show user profile  LionDebt
Purely based on what you used for an example.. wouldn't a

for each X
then do Y

be better, where X is geometry/lights etc?

I'm going to start learning maxscript in the next couple of weeks... unless I just man the fuck up and buy Modo601...
read 616 times
10/29/2012 5:16:27 PM (last edit: 10/29/2012 5:16:27 PM)
show user profile  Mr_Stabby
if $blah == 1 then (
blah blah
) else if $blah == 2 then (
blah blah
) else (
uber blah

i think... been a long time.

read 610 times
10/29/2012 5:31:40 PM (last edit: 10/29/2012 5:31:40 PM)
show user profile  Garp
Search the ref for case/of expression.

read 606 times
10/29/2012 5:37:10 PM (last edit: 10/29/2012 5:37:10 PM)
show user profile  3joez
read 585 times
10/30/2012 9:24:48 AM (last edit: 10/30/2012 9:24:48 AM)
#Maxforums IRC
Open chat window