# GetTapSide

Gives back the number of the side that has been tapped

Syntax: `result=GetTapSide(side)`

* `side` will contain number of side that has been tapped

Returns: Function returns 1 if the tap to side has been recognized, otherwise 0

Notes: Function fill the side variable with value 0 to 5 according which side has been tapped. Function reads [Motion()](https://rmjjjt.gitbook.io/rubik-s-futuro-cube-sdk-open-beta-v1-4/summary/api-native-functions/motion), so for correct operation, side taps must be registered. If you call [AckMotion()](https://rmjjjt.gitbook.io/rubik-s-futuro-cube-sdk-open-beta-v1-4/summary/api-native-functions/motion/ackmotion) prior this function, the result will become 0.

Example: `if (GetTapSide(side)) {...work with side...}`
