also, for some things, tcl works well
like putting this in the label of a switch node:
[if {[value this.which]=="1"} {return "[knob this.tile_color 0xff000000]"}
{return "[knob this.tile_color 0xff00ff]"}]
On Wed, Feb 8, 2012 at 6:58 AM, Stephen Newbold <
[email protected]> wrote:
> if this ? do this : else this
>
> ie. r ==1 ? 0 : r*2
>
> Steve
>
>
> Johannes Hezer wrote:
>
>> Hey
>>
>> this is probably an easy one ...
>> Are if then else statements possible with expressions ?
>>
>> if {x>y} then {do this} else {do that}
>>
>> I could not find anything in the usual resources.
>>
>> Cheers
>> johannes
>> ______________________________**_________________
>> Nuke-users mailing list
>> [email protected].**co.uk<[email protected]>,
>> http://forums.thefoundry.co.**uk/ <http://forums.thefoundry.co.uk/>
>> http://support.thefoundry.co.**uk/cgi-bin/mailman/listinfo/**nuke-users<http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users>
>>
>
>
> --
> Stephen Newbold
> Compositing Lead - Film
> MPC
> 127 Wardour Street
> Soho, London, W1F 0NL
> Main - + 44 (0) 20 7434 3100
> www.moving-picture.com
>
>
> ______________________________**_________________
> Nuke-users mailing list
> [email protected].**co.uk<[email protected]>,
> http://forums.thefoundry.co.**uk/ <http://forums.thefoundry.co.uk/>
> http://support.thefoundry.co.**uk/cgi-bin/mailman/listinfo/**nuke-users<http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users>
>
>
_______________________________________________
Nuke-users mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users