Tuesday, August 3, 2010

Re: basic expression question

0 comments
The correct transform to use is:
1-value

This way if the captured value is 1, the result is 0, and vice versa.

Jarrod

On Aug 4, 12:42 pm, Fiasco <dgvoll...@gmail.com> wrote:
> Tried this as abs(value - 1) as well.
>
> What I'm ending up with is:
>
> When value = 1 I end up with 0
> When value = 0 I end up with 65535
>
> On Aug 3, 9:26 pm, Fiasco <dgvoll...@gmail.com> wrote:
>
>
>
> > I have two possible regex values:
> > 1 and 0
>
> > These are assigned to a token [tokenvalue]
> > data type analog
> > target type digital
> > token type token
> > transform abs([tokenvalue]-1)
> > Min value 0
> > Max Value 0
>
> > Will this correctly transform 1 into a 0 and 0 into a 1?
>
> > 0-1 = -1
> > abs(-1) = 1
>
> > 1-1 = 0
> > abs(0) = 0
>
> > Yes?

--
You received this message because you are subscribed to the Google Groups "CommandFusion" group.
To post to this group, send email to commandfusion@googlegroups.com.
To unsubscribe from this group, send email to commandfusion+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/commandfusion?hl=en.

Comments

0 comments to "Re: basic expression question"

Post a Comment

 

Copyright 2008 All Rights Reserved Revolution Two Church theme by Brian Gardner Converted into Blogger Template by Bloganol dot com