Writing Expressions

I want to compare X positions of two Objects like:
x position of Object 1 > x position of Object 2
set x position of object 1 = x position of object 2 and vice versa.

Try this…

writing expression like object2.() gives an error. I’m new to this. Is there something wrong I might be doing?

So the general format is:

  • Object name
  • Period ‘.’
  • Property name
  • Open bracket ‘(’
  • Any parameters the property requires
  • Close bracket ‘)’

In this case, your object is called ‘object2’, and the property you’re wanting to get is ‘X’ (and it doesn’t require any parameters). So what you need is: object2.X()
Hope that helps.

Thank you! will try to implement.