Checking getValue
#4168
-
I write the text "0" into the structure, and when checking the condition, the condition does not work, although the output works properly Code example item.Items = ini.GetValue(defIdChar, "items", "noone"); Here the condition is triggered only else, although numbers are written in json, and 0 is no exception if (dataBegin->Items == "0")
{
returnItems = "Нет в наличии";
}
else
{
returnItems = dataBegin->Items;
} What could be the reason? |
Beta Was this translation helpful? Give feedback.
Answered by
nlohmann
Sep 29, 2023
Replies: 1 comment
-
This library does not have a GetValue function. You may have mistaken the repository. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Kolhun
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This library does not have a GetValue function. You may have mistaken the repository.