This version of Unity is unsupported.

Foldout.value

public bool value;

Description

This is the state of the Foldout's toggle. It is true if the Foldout is open and its contents are visible, and false if the Foldout is closed, and its contents are hidden.