Jump to content

Update a configuration file: Difference between revisions

m
Line 1,669:
if ($FavouriteFruit)
{
$line = "FavouriteFruitFAVOURITEFRUIT $FavouriteFruit"
}
}
Line 1,676:
if ($NumberOfBananas)
{
$line = "NumberOfBananasNUMBEROFBANANAS $NumberOfBananas"
}
}
Line 1,683:
if ($NumberOfStrawberries)
{
$line = "NumberOfStrawberriesNUMBEROFSTRAWBERRIES $NumberOfStrawberries"
}
}
Line 1,690:
if ($NeedsPeeling -eq "On")
{
$line = "NeedsPeelingNEEDSPEELING"
}
elseif ($NeedsPeeling -eq "Off")
{
$line = "; NeedsPeelingNEEDSPEELING"
}
}
Line 1,701:
if ($SeedsRemoved -eq "On")
{
$line = "SeedsRemovedSEEDSREMOVED"
}
elseif ($SeedsRemoved -eq "Off")
{
$line = "; SeedsRemovedSEEDSREMOVED"
}
}
Line 1,725:
{{Out}}
<pre>
# This is a configuration file in standard configuration file format
#
# Lines begininning with a hash or a semicolon are ignored by the application
# program. Blank lines are also ignored by the application program.
 
# The first word on each non comment line is the configuration option.
# Remaining words or numbers on the line are configuration parameter
Line 1,737 ⟶ 1,742:
 
# This is a boolean that should be set
; NEEDSPEELING
; NeedsPeeling
 
# This boolean is commented out
SEEDSREMOVED
SeedsRemoved
 
# How many bananas we have
NumberOfBananasNUMBEROFBANANAS 1024
 
# How many strawberries we have
NumberOfStrawberriesNUMBEROFSTRAWBERRIES 62000
</pre>
 
308

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.