I will have a value in %cvar i someone uses the alias choosing a nick with the right click mouse menu.

That is not the problem, if I add an ECHO command...


Code:
  on 1:dialog:mydialog:init:*:{

  if (%cvar == $null) { set %bvar $did(3).text }
  else { /did -ram mydialog 3 %cvar | %bvar = %cvar | echo %cvar } 
  set %avar $did(1).text
  }
 


I can see that the %cvar has the nick as value