invalidkit0
invalidkit0
CC#
Created by invalidkit0 on 4/7/2024 in #help
set with different values
hey everyone, i am a total noob and i want to ask if there is a way for set having different values with different conditions? like
private bool Bool1;

public bool Bool2
{
get => Bool1;
if (a = 1) {
set => Bool2 = true;
}
else {
set => Bool2 = false;
}
}
private bool Bool1;

public bool Bool2
{
get => Bool1;
if (a = 1) {
set => Bool2 = true;
}
else {
set => Bool2 = false;
}
}
23 replies