I have been trying to understand the PlatformerController script from the 2D platformer tutorial and ran into this line:
movement.isMoving = Mathf.Abs (h) > 0.1;

What exactly does this mean? I can't find any specific information on this kind of syntax.

movement.isMoving = Something sets the value of movement.isMoving to the value of Something. movement.isMoving is a bool value, meaning that it is either true or false and as such Something must be a boolean value.

`>` is the greater than operator.

Mathf.Abs(h) > 0.1 compares the values of Mathf.Abs(h) and 0.1 and returns the boolean value of whether Mathf.Abs(h) is larger than 0.1.

As a result, movement.isMoving is set to the boolean value indicating whether Mathf.Abs(h) is greater than 0.1.

The absolute value is a number value where you simply remove the negative sign.

Examples:

Mathf.Abs ( -3 ) return 3.

Mathf.Abs ( 3 ) also return 3.

The expression is formed such as "boolean = a > b". a is Mathf.Abs( h ) and b is 0.1. If a is greater than b, then the expression evaluate to true. Otherwise false.

"Mathf.Abs (h) > 0.1" is a condition that returns either true or false. Mathf.abs returns the absolute value of the input (meaning if the input is -5 it returns 5). If Mathf.Abs (h) is larger than 0.1 the condition is true, otherwise it is false.

The "movement.isMoving =" part in front of it just sets the isMoving property to the returned value of the condition.