So che un modo semplice è:
mia_var= 123; [complimenti a Tx!]
Quello che vorrei fare è scrivere automaticamente un singolo valore in una macro globale var in base a una condizione, qualcosa del tipo:
my_var2= (numerico, continuo, formula(if(:Condition1=="yes" & :Condition2 ==23.4, :SourceValue"));
Prendi il valore SourceValue che ha Condition1="yes" e Condition2=23.4 e scrivilo nella macro globale var MY_VAR2.
Sono grato per ogni suggerimento!
Ecco un modo per fare ciò che stai cercando
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/big class.jmp" );
// Get Rows Where, returns a matrix of all rows that meet the criteria,
// so one needs to select the 1st matrix element
my_var = :weight[(dt << get rows where( :sex == "F" & :height == 66 ))[1]];