holy poop the multi variable thingy works i deed it

This commit is contained in:
abbie 2022-01-27 20:01:34 +00:00
parent f331b6f8cd
commit e1c7c1fbfc
No known key found for this signature in database
GPG key ID: 04DDE463F9200F87

View file

@ -118,13 +118,15 @@ fn load_macro(set: String, mac: String, inputs: String, vars: Vec<String>) -> St
contents = keg.to_string();
}
}
if coont == 1 {
if coont != 1 {
let jazz: Vec<&str> = contents.split("\n").collect();
contents = jazz[1].to_string();
let mut xcont = "".to_string();
for x in jazz {
if x.contains("[") == false && x.contains("]") == false {
xcont = format!("{}\n{}",xcont,x);
}
if coont == 2 {
let jazz: Vec<&str> = contents.split("\n").collect();
contents = jazz[3].to_string();
}
contents = xcont.to_string();
}
return contents.to_string();
}