PennController for IBEX › Forums › Troubleshooting › Reply To: Troubleshooting
February 14, 2022 at 12:14 pm
#7751
Keymaster
Hi,
Did you double-check which ) your .log commands were attached to? It’s a common issue to attach them to a PennController element instead of newTrial, in which case you are actually calling a different log command, eg:
newTrial(
newScale("yesno", "Yes", "No")
.button()
.print()
,
newButton("Next")
.print()
.wait( getScale("yesno").test.selected()
)
.log( "ID", GetURLParameter("id") )
)
In this code, although the indentation would be consistent with log attaching to newTrial, it actually attaches to the closing parenthesis of wait, so effectively to the Button element. You can see that there is a ) on the line under log that actually closes newTrial
Jeremy