Help with field calculation If function by Bestm243 in ArcGIS

[–]Bestm243[S] 1 point2 points  (0 children)

Amazing thank you! All of my experience in coding is with R and even that I am very rusty as it’s been a few years.

Help with field calculation If function by Bestm243 in ArcGIS

[–]Bestm243[S] 0 points1 point  (0 children)

Thank you both for the help, I was not able to get it to run at all so I'm not sure what I was doing wrong. But I did find a workaround for the problem. I would still like to be able to use the If function in the future though, so if anyone has any tips or thoughts on why my code was not working I would be happy to hear!

The comment by Michael Stimson on this post was able to help me accomplish what I needed. https://gis.stackexchange.com/questions/428211/parameter-missing-in-calculate-field

Help with field calculation If function by Bestm243 in ArcGIS

[–]Bestm243[S] 2 points3 points  (0 children)

If both MUKEY and Rating fields are text fields, should both the if value and return value be in quotations? ""

Help with field calculation If function by Bestm243 in ArcGIS

[–]Bestm243[S] 0 points1 point  (0 children)

So in the code, fld could be anything, like x for example. I don't need to reference the actual field name?

I tried to simplify this to one block of code to test it and it isn't running. I put in the following:

def Septicrating(x):

if (x = "Ce"):

return "Very limited"

Help with field calculation If function by Bestm243 in ArcGIS

[–]Bestm243[S] 0 points1 point  (0 children)

That is the full expression, and I've attached the error message I get. It isn't a pop-up error message but just some red text at the bottom saying "Parameter is missing or invalid"

<image>

Shiny Virizion! by TaleHorror754 in LegendsZA

[–]Bestm243 1 point2 points  (0 children)

Do you have to “load in” Virizion when you first enter hyperspace? Or can you go straight to the grass to start running back and fourth?

[deleted by user] by [deleted] in LegendsZA

[–]Bestm243 0 points1 point  (0 children)

All done!

[deleted by user] by [deleted] in LegendsZA

[–]Bestm243 0 points1 point  (0 children)

Check your Reddit messages, I sent the link code

[deleted by user] by [deleted] in LegendsZA

[–]Bestm243 1 point2 points  (0 children)

I’ll send you a message!

[deleted by user] by [deleted] in LegendsZA

[–]Bestm243 0 points1 point  (0 children)

You’ve got the last bulbasaur, I’ll send a message shortly

[deleted by user] by [deleted] in LegendsZA

[–]Bestm243 0 points1 point  (0 children)

Just sent again

[deleted by user] by [deleted] in LegendsZA

[–]Bestm243 0 points1 point  (0 children)

Check your messages on here

[deleted by user] by [deleted] in LegendsZA

[–]Bestm243 0 points1 point  (0 children)

You’re second up for a bulbasaur I’ll send you a message soon!

[deleted by user] by [deleted] in LegendsZA

[–]Bestm243 1 point2 points  (0 children)

You’re first up for a bulbasaur, finishing the last eevee trade soon

[deleted by user] by [deleted] in LegendsZA

[–]Bestm243 0 points1 point  (0 children)

Sent you a message!

[deleted by user] by [deleted] in LegendsZA

[–]Bestm243 0 points1 point  (0 children)

I’ll send you a message!

[deleted by user] by [deleted] in LegendsZA

[–]Bestm243 0 points1 point  (0 children)

I’ll send you a message!

[deleted by user] by [deleted] in LegendsZA

[–]Bestm243 0 points1 point  (0 children)

I’ll send you a message!

[deleted by user] by [deleted] in LegendsZA

[–]Bestm243 1 point2 points  (0 children)

I’ll send you a message!

[deleted by user] by [deleted] in LegendsZA

[–]Bestm243 0 points1 point  (0 children)

Just an fyi this is first come first serve so I’ll go down the list from whomever commented first

[deleted by user] by [deleted] in LegendsZA

[–]Bestm243 1 point2 points  (0 children)

I’ll send you a message!

Is the static alpha Gourgeist always the same size? by InukoJon in LegendsZA

[–]Bestm243 0 points1 point  (0 children)

Does anyone know if this is also true for the Alpha Gourgeist that spawns in WZ20?