Using the Light Sensor

Click on the 'Wait for' icon to find the 'Wait for Darker' and 'Wait for Lighter' icons.

This icon is the 'Wait for Lighter'
This icon is the 'Wait for Darker'

 The following program will move motors A & C forward on power level 1 until the light sensor sees a darker area.  Then it will reverse at full power for 1 second then stop.

 

Using Jump and Land

Open the structures palette by right clicking on the icon and then clicking the push pin to fix it to your desktop.

Add in red jump and land icons to your program as follows:

Now the program will loop continuously, moving forward until it sees a darker area, then moving back for 1 second.

 
The jump and land icons must be used in matching pairs.  For example, if you use a blue jump, it will land on the blue land icon.
Modify the above program so that your bot will make a turn to the left before repeating.
Rather than have your program repeat endlessly using the jump and land icons, you can use loops instead of jumps and lands. 

The default is to loop twice, but you can string in a modifier to say how many loops you would like.
Here is an example: