Language Questions


Author
Message
morgan_w
morgan_w
Respected Member (351 reputation)Respected Member (351 reputation)Respected Member (351 reputation)Respected Member (351 reputation)Respected Member (351 reputation)Respected Member (351 reputation)Respected Member (351 reputation)Respected Member (351 reputation)Respected Member (351 reputation)
Group: Forum Members
Posts: 5, Visits: 43
Hi All,

Hoping to clear up some syntax I can't figure out from the language reference. This is my time learning a programming language, so please excuse me if I've missed anything from the reference. If anyone has learnt the answers to any of these questions, I'd really appreciate some input. Just trying to learn as fast as I can!

1. What are the key differences between values and expressions? Can expressions do everything values can, and if so, why would I ever use values? (And parameters...?)

2. What are the key differences between .insertstimulustimes( )  and .setstimulustimes( ) ?

3. Is there an order in which expressions are executed in something like /ontrialbegin[expression1; expression2; expression3]?

4. Is there an order in which competing /ontrialbegin 's (in the trial element vs above in the block element) are executed? Block before trial or vice-versa?

5.  What parts of a trial timing structure can take variables, and which of these can update between trials? I've noticed for instance that although /stimulustimes cannot take variables, insertstimulustimes() and setstimulus() can. Also, although /timeout can take a variable (value or expression), sometimes it doesn't seem to update as the variable updates from trial to trial. Is there an equivalent to /timeout that will update across trials?

6. In certain attributes or functions a stimulus needs explicit description such as trial.trialname.insertstimulustimes(picture.stimulusname, time) and in others, it does not (but can take either) e.g. /trials = [1 = trial1; 2=trial2; etc.]. In the second case, is it any more efficient to be explicit like in the first case?

An answer to even one of these questions would be much appreciated!

Cheers,
Morgan

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
morgan_w - 5 Years Ago
Dave - 5 Years Ago

Reading This Topic

Explore
Messages
Mentions
Search