Okay, so for example, I want a dialog to range in size based on the presence of a remote script or not,

I can put conditional if statements or use $calc to add numbers or whatever, as long as the values are defined inside of the "on *:dialog:dialog_name:init: {}" code?

So then it looks like this:
Code
on *:dialog:dialog_name:init: {
  set %somevariable 10
  if (condition) { set %somevariable $calc(%somevariable + 10) }

dialog dialog_name {
  title "Test"
  size -1 -1 82 %somevariable
  option dbu
}


Does that look right?