If else statement in Barcode scan result
I already make a Barcode scanner, the result after it scan the barcode is in text (example - "page 2").
My problem is how do i want create event on the result.
That result will determine which page the application will display.
Example :
Result Name of Page
"page 1" Home
"page 2" Activity 1
"page 3" Activity 2
So what kind of script do i have to put on the barcode scanner?
*Result is the text result after barcode is scanned