Script icon Script Multi-language ARC Script: build, run and debug Blockly, JavaScript, EZ-Script or Python with Intellisense, run/save/load and Roboscratch support Try it →
Asked — Edited
Problem With If

I was trying to script with an "if" command and in the script functions it says if (adc[port])[condiction][value]) in the sample it says if(adc(adc2)>50) and leaves out the value the text says that the value is a user defined integer Can someone give me a correct example and explain what the interger is or represents?

User-inserted image


ARC Pro

Upgrade to ARC Pro

With ARC Pro, your robot is not just a machine; it's your creative partner in the journey of technological exploration.

Author Avatar
PRO
Synthiam
LinkedIn Thingiverse Twitter YouTube GitHub
#1  

Put a space between parameters (Between adc(adc) and > and 50)


if (adc(adc2) > 50)