Toggle navigation
Polycount
News
Forums
Patreon
Challenges
Quarterly Character Art Challenge
Bi-Monthly Environment Art Challenge
Wiki
Moar
Recent
Activity
Badges
Drafts
Store
Sign In
·
Register
Author:
Toivo
Home
›
Search
Topic
Mel Script: Looking for a command if something is selected or not
Author
Date within
1 day
3 days
1 week
2 weeks
1 month
2 months
6 months
1 year
of
Examples: Monday, today, last week, Mar 26, 3/26/04
Search
Search
Re: Mel Script: Looking for a command if something is selected or not
Reply by
Tekoppar
·
Oct 2019
·
Home
›
Coding, Scripting, Shaders
There is no need to add the greater than 0. 0 is false and anything else is true. Thus there's no need for the greater than 0
Re: Mel Script: Looking for a command if something is selected or not
Reply by
onionhead_o
·
Oct 2019
·
Home
›
Coding, Scripting, Shaders
you didnt finish the condition. {<br> if (size (`ls -sl`) > 0){<br> print "yes";<br> }<br> <br> else{<br> print "no";<br> }<br>}
Re: Mel Script: Looking for a command if something is selected or not
Reply by
eltarbos
·
Oct 2019
·
Home
›
Coding, Scripting, Shaders
you can try this:string $sel[] = `ls -sl`;<br>if ($sel[0] == "") <br> {<br> print "Nothing"; <br> }<br>else<br> {<br> print $sel; <br> }
3 results