Var.sameAs()

sameAs ( var2 )

Check whether two variable objects refer to the same variable.

Arguments:

var2: The other variable.

Return value:

Boolean result indicates whether the two variable objects refer to the same model variable.

Example usage:

  print(model.getVars()[0].sameAs(model.getVars()[1]))