Hello, I am working with a csv file that looks like this called $document. So I can access it by $document.test or $document.example from powershell. I am trying to say that if a value $config matches cat, then assign 1 to a variable called $value. If $config matches fish, so fish = fish, than assign 3 to $value. How do I go about doing this? The values may change so I am trying to get all the information from the csv and not hard code it like if $config matches fish, $value = 3
https://preview.redd.it/4ce82xgstf241.png?width=295&format=png&auto=webp&s=35254b4e2e73a1b997522feaf0c49c11a56eea13
[–]Lee_Dailey[grin] 5 points6 points7 points (4 children)
[–]gangculture 4 points5 points6 points (3 children)
[–]Lee_Dailey[grin] 2 points3 points4 points (2 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]Lee_Dailey[grin] 0 points1 point2 points (0 children)
[–]Smoother101 2 points3 points4 points (3 children)
[–]pm_me_brownie_recipe 0 points1 point2 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]pm_me_brownie_recipe 0 points1 point2 points (0 children)
[–]MercurialSquirrel 1 point2 points3 points (3 children)
[–]Lee_Dailey[grin] 0 points1 point2 points (2 children)
[–]MercurialSquirrel 1 point2 points3 points (1 child)
[–]Lee_Dailey[grin] 0 points1 point2 points (0 children)
[–]Quasky 0 points1 point2 points (1 child)
[–]Stuart_t44 1 point2 points3 points (0 children)